From 0a1338c68f19bbea13b3ae7ce61a185b6a5f65ef Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Wed, 14 Jan 2026 10:09:53 +0100 Subject: executor: sys/linux: SYZOS: add support for AMD STGI and CLGI instructions Implement the SYZOS_API_NESTED_AMD_STGI and SYZOS_API_NESTED_AMD_CLGI primitives to toggle the Global Interrupt Flag (GIF). These commands execute the stgi and clgi instructions respectively and require no arguments. Also add a test checking that CLGI correctly masks NMI injection from L0. --- sys/linux/dev_kvm_amd64.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/linux/dev_kvm_amd64.txt') diff --git a/sys/linux/dev_kvm_amd64.txt b/sys/linux/dev_kvm_amd64.txt index abdde5644..ba5fa6e4c 100644 --- a/sys/linux/dev_kvm_amd64.txt +++ b/sys/linux/dev_kvm_amd64.txt @@ -172,6 +172,8 @@ syzos_api_call$x86 [ nested_intel_vmwrite_mask syzos_api$x86[340, syzos_api_nested_intel_vmwrite_mask] nested_amd_vmcb_write_mask syzos_api$x86[380, syzos_api_nested_amd_vmcb_write_mask] nested_amd_invlpga syzos_api$x86[381, syzos_api_nested_amd_invlpga] + nested_amd_stgi syzos_api$x86[382, void] + nested_amd_clgi syzos_api$x86[383, void] ] [varlen] kvm_text_x86 [ -- cgit mrf-deployment