]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: selftest: Add a selftest for VMRUN/#VMEXIT with unmappable vmcb12
authorYosry Ahmed <yosry@kernel.org>
Tue, 3 Mar 2026 00:34:20 +0000 (00:34 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 5 Mar 2026 00:09:09 +0000 (16:09 -0800)
commit5e4c6da0bb925bc91a6020511e85bd9574f8474a
treec2daa3c583528755388519cfb6f87219ead1f6cb
parentb6dc21d896a02b5fd305f505a4ec4dad50ecd8fb
KVM: selftest: Add a selftest for VMRUN/#VMEXIT with unmappable vmcb12

Add a test that verifies that KVM correctly injects a #GP for nested
VMRUN and a shutdown for nested #VMEXIT, if the GPA of vmcb12 cannot be
mapped.

Signed-off-by: Yosry Ahmed <yosry@kernel.org>
Link: https://patch.msgid.link/20260303003421.2185681-27-yosry@kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/Makefile.kvm
tools/testing/selftests/kvm/x86/svm_nested_invalid_vmcb12_gpa.c [new file with mode: 0644]