]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: selftests: Assert that STI blocking isn't set after event injection
authorSean Christopherson <seanjc@google.com>
Mon, 24 Feb 2025 16:54:42 +0000 (08:54 -0800)
committerSean Christopherson <seanjc@google.com>
Fri, 28 Feb 2025 17:15:23 +0000 (09:15 -0800)
commitf3513a335e71296a1851167b4e3b0e2bf09fc5f1
tree02924fa407b1d5049eeb7713583853ca44c650af
parentbe45bc4eff33d9a7dae84a2150f242a91a617402
KVM: selftests: Assert that STI blocking isn't set after event injection

Add an L1 (guest) assert to the nested exceptions test to verify that KVM
doesn't put VMRUN in an STI shadow (AMD CPUs bleed the shadow into the
guest's int_state if a #VMEXIT occurs before VMRUN fully completes).

Add a similar assert to the VMX side as well, because why not.

Reviewed-by: Jim Mattson <jmattson@google.com>
Link: https://lore.kernel.org/r/20250224165442.2338294-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86/nested_exceptions_test.c