From 26ee5237507419c1fa5dea5b2a84a0b7dcce9307 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Tue, 18 Nov 2025 12:57:42 +0100 Subject: 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. --- sys/linux/dev_kvm_amd64.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'sys') 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 [ -- cgit mrf-deployment