aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2025-11-18 12:57:42 +0100
committerAlexander Potapenko <glider@google.com>2025-11-19 08:59:40 +0000
commit26ee5237507419c1fa5dea5b2a84a0b7dcce9307 (patch)
tree6850e5bcb41014181ff051cf8a58ff67da8c3af5 /sys
parent5af4be3c78a6a9fc6a3c9c3d1a48151f190c9221 (diff)
executor: sys/linux: implement SYZOS_API_NESTED_VMLAUNCH
Provide a SYZOS API command to launch the L2 VM using the VMLAUNCH (Intel) or VMRUN (AMD) instruction. For testing purposes, each L2->L1 exit is followed by a guest_uexit_l2() returning the exit code to L0. Common exit reasons (like HLT) will be mapped into a common exit code space (0xe2e20000 | reason), so that a single test can be used for both Intel and AMD. Vendor-specific exit codes will be returned using the 0xe2110000 mask for Intel and 0xe2aa0000 for AMD.
Diffstat (limited to 'sys')
-rw-r--r--sys/linux/dev_kvm_amd64.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/linux/dev_kvm_amd64.txt b/sys/linux/dev_kvm_amd64.txt
index 8122df1d0..cb116574d 100644
--- a/sys/linux/dev_kvm_amd64.txt
+++ b/sys/linux/dev_kvm_amd64.txt
@@ -116,6 +116,7 @@ syzos_api_call$x86 [
enable_nested syzos_api$x86[300, const[0, intptr]]
nested_create_vm syzos_api$x86[301, syzos_api_vm_id]
nested_load_code syzos_api$x86[302, syzos_api_nested_load_code]
+ nested_vmlaunch syzos_api$x86[303, syzos_api_vm_id]
] [varlen]
kvm_text_x86 [