diff options
| author | Alexander Potapenko <glider@google.com> | 2025-10-13 15:05:46 +0200 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2025-10-17 06:51:20 +0000 |
| commit | 1bf5eb12ff86ff72f837a79ea186d4391edd4214 (patch) | |
| tree | 0f1b7d10eee7aa0725e52926b843460207504473 /executor/common_kvm_amd64_syzos.h | |
| parent | bc704f36a2d3ef35b1857bc077e58e98c9af4f94 (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.h | 7 |
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)) |
