KVM: selftests: Verify KVM disable interception (for userspace) on filter change
authorSean Christopherson <seanjc@google.com>
Tue, 10 Jun 2025 22:57:37 +0000 (15:57 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 20 Jun 2025 20:07:38 +0000 (13:07 -0700)
commit0792c71c1c94964952339f3251818b6dcf66c19b
tree3b8e59e5efdc67c282b00b9abaa21b1b6786a7ca
parentbea44d1992401b5e1a0d213cba85f9c53f492e8a
KVM: selftests: Verify KVM disable interception (for userspace) on filter change

Re-read MSR_{FS,GS}_BASE after restoring the "allow everything" userspace
MSR filter to verify that KVM stops forwarding exits to userspace.  This
can also be used in conjunction with manual verification (e.g. printk) to
ensure KVM is correctly updating the MSR bitmaps consumed by hardware.

Tested-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Tested-by: Manali Shukla <Manali.Shukla@amd.com>
Link: https://lore.kernel.org/r/20250610225737.156318-33-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86/userspace_msr_exit_test.c