diff options
| author | Alexander Potapenko <glider@google.com> | 2025-09-25 16:49:33 +0200 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2025-10-17 06:51:20 +0000 |
| commit | 554d3ef1c24ae1bc3c8c439e8c8f3a9006434244 (patch) | |
| tree | 165e63455297e0c1ce721ee4c59ae78bd3aa273b /executor/kvm.h | |
| parent | 19568248c8bdb031004760d49df5045a85aa517b (diff) | |
executor: rename SYZOS-related address definitions
To distinguish SYZOS addresses from other x86 definitions, change them
to start with X86_SYZOS_ADDR_
No functional change.
Diffstat (limited to 'executor/kvm.h')
| -rw-r--r-- | executor/kvm.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/executor/kvm.h b/executor/kvm.h index 056f8ae65..79dddc486 100644 --- a/executor/kvm.h +++ b/executor/kvm.h @@ -32,17 +32,21 @@ #define X86_ADDR_VAR_VMEXIT_CODE 0x9000 #define X86_ADDR_VAR_USER_CODE 0x9100 #define X86_ADDR_VAR_USER_CODE2 0x9120 -#define X86_ADDR_SMRAM 0x30000 + +// x86 SYZOS definitions. +#define X86_SYZOS_ADDR_SMRAM 0x30000 // Write to this page to trigger a page fault and stop KVM_RUN. -#define X86_ADDR_EXIT 0x40000 +#define X86_SYZOS_ADDR_EXIT 0x40000 // Dedicated address within the exit page for the uexit command. -#define X86_ADDR_UEXIT (X86_ADDR_EXIT + 256) -#define X86_ADDR_DIRTY_PAGES 0x41000 -#define X86_ADDR_USER_CODE 0x50000 -#define X86_ADDR_EXECUTOR_CODE 0x54000 -#define X86_ADDR_SCRATCH_CODE 0x58000 -#define X86_ADDR_UNUSED 0x200000 -#define X86_ADDR_IOAPIC 0xfec00000 +#define X86_SYZOS_ADDR_UEXIT (X86_SYZOS_ADDR_EXIT + 256) +#define X86_SYZOS_ADDR_DIRTY_PAGES 0x41000 +#define X86_SYZOS_ADDR_USER_CODE 0x50000 +#define X86_SYZOS_ADDR_EXECUTOR_CODE 0x54000 +#define X86_SYZOS_ADDR_SCRATCH_CODE 0x58000 +#define X86_SYZOS_ADDR_STACK_BOTTOM 0x0 +#define X86_SYZOS_ADDR_STACK0 0xf80 +#define X86_SYZOS_ADDR_UNUSED 0x200000 +#define X86_SYZOS_ADDR_IOAPIC 0xfec00000 #define X86_CR0_PE 1ULL #define X86_CR0_MP (1ULL << 1) |
