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>
This commit is contained in:
Yosry Ahmed 2026-03-03 00:34:20 +00:00 • committed by Sean Christopherson
commit 5e4c6da0bb
2 changed files with 99 additions and 0 deletions