From 5af4be3c78a6a9fc6a3c9c3d1a48151f190c9221 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Tue, 18 Nov 2025 12:07:13 +0100 Subject: executor: sys/linux: implement SYZOS_API_NESTED_LOAD_CODE The new command loads an instruction blob into the specified L2 VM. --- sys/linux/dev_kvm_amd64.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys') diff --git a/sys/linux/dev_kvm_amd64.txt b/sys/linux/dev_kvm_amd64.txt index 9beb5cd27..8122df1d0 100644 --- a/sys/linux/dev_kvm_amd64.txt +++ b/sys/linux/dev_kvm_amd64.txt @@ -96,6 +96,11 @@ syzos_api_set_irq_handler { type syzos_api_vm_id int64[0:3] +syzos_api_nested_load_code { + vm_id syzos_api_vm_id + insns text[x86_64] +} [packed] + # IDs here must match those in executor/common_kvm_amd64_syzos.h. syzos_api_call$x86 [ uexit syzos_api$x86[0, intptr] @@ -110,6 +115,7 @@ syzos_api_call$x86 [ set_irq_handler syzos_api$x86[200, syzos_api_set_irq_handler] 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] ] [varlen] kvm_text_x86 [ -- cgit mrf-deployment