aboutsummaryrefslogtreecommitdiffstats
path: root/executor/test_linux.h
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 /executor/test_linux.h
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 'executor/test_linux.h')
0 files changed, 0 insertions, 0 deletions