]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: selftests: Extend MSRs test to validate vCPUs without supported features
authorSean Christopherson <seanjc@google.com>
Fri, 19 Sep 2025 22:32:54 +0000 (15:32 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 23 Sep 2025 16:52:17 +0000 (09:52 -0700)
commita8b9cca99cf454799ef799f8af9bdb55389cfd94
treebfdfcc922c07cd12bef8863dc45bf6b68609c7fb
parent27c41353064f9fdec9276e6b8e618b01110ef282
KVM: selftests: Extend MSRs test to validate vCPUs without supported features

Add a third vCPUs to the MSRs test that runs with all features disabled in
the vCPU's CPUID model, to verify that KVM does the right thing with
respect to emulating accesses to MSRs that shouldn't exist.  Use the same
VM to verify that KVM is honoring the vCPU model, e.g. isn't looking at
per-VM state when emulating MSR accesses.

Link: https://lore.kernel.org/r/20250919223258.1604852-48-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86/msrs_test.c