diff options
| author | Alexander Potapenko <glider@google.com> | 2025-07-23 12:41:10 +0200 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2025-07-24 12:46:04 +0000 |
| commit | 1b2a3c574905e3e59aa8e2f338bd6fbe2e7898d7 (patch) | |
| tree | 5fd308d1413ae13830d08b1ab81f12d1148cafcd /sys | |
| parent | 65d60d733b607360c8fd958b556954f71bfcdda9 (diff) | |
executor: sys/linux: use sparse IDs for SYZOS API
Like we already do on ARM, use prime numbers multiplied by 10 for
SYZOS API IDs to prevent the compiler from emitting a jump table in
guest_main().
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/linux/dev_kvm_amd64.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/linux/dev_kvm_amd64.txt b/sys/linux/dev_kvm_amd64.txt index f56ff63a6..a76e3be7f 100644 --- a/sys/linux/dev_kvm_amd64.txt +++ b/sys/linux/dev_kvm_amd64.txt @@ -52,8 +52,8 @@ syzos_api_cpuid { syzos_api_call$x86 [ uexit syzos_api$x86[0, intptr] - code syzos_api$x86[1, syzos_api_code$x86] - cpuid syzos_api$x86[2, syzos_api_cpuid] + code syzos_api$x86[10, syzos_api_code$x86] + cpuid syzos_api$x86[20, syzos_api_cpuid] ] [varlen] kvm_text_x86 [ |
