aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_kvm_amd64_syzos.h
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2025-10-13 15:05:46 +0200
committerAlexander Potapenko <glider@google.com>2025-10-17 06:51:20 +0000
commit1bf5eb12ff86ff72f837a79ea186d4391edd4214 (patch)
tree0f1b7d10eee7aa0725e52926b843460207504473 /executor/common_kvm_amd64_syzos.h
parentbc704f36a2d3ef35b1857bc077e58e98c9af4f94 (diff)
executor: rework GDT setup for SYZOS
Untangle SYZOS GDT setup from the legacy one. Drop LDT and TSS for now.
Diffstat (limited to 'executor/common_kvm_amd64_syzos.h')
-rw-r--r--executor/common_kvm_amd64_syzos.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/executor/common_kvm_amd64_syzos.h b/executor/common_kvm_amd64_syzos.h
index a8e825ab9..9baf9c5f5 100644
--- a/executor/common_kvm_amd64_syzos.h
+++ b/executor/common_kvm_amd64_syzos.h
@@ -77,6 +77,13 @@ typedef enum {
UEXIT_ASSERT = (uint64)-3,
} uexit_code;
+__attribute__((naked))
+GUEST_CODE static void
+dummy_null_handler()
+{
+ asm("iretq");
+}
+
// Main guest function that performs necessary setup and passes the control to the user-provided
// payload.
__attribute__((used))