linux/tools/testing/selftests/kvm/include/x86
Sean Christopherson 9c38ddb3df KVM: selftests: Add an MSR test to exercise guest/host and read/write
Add a selftest to verify reads and writes to various MSRs, from both the
guest and host, and expect success/failure based on whether or not the
vCPU supports the MSR according to supported CPUID.

Note, this test is extremely similar to KVM-Unit-Test's "msr" test, but
provides more coverage with respect to host accesses, and will be extended
to provide addition testing of CPUID-based features, save/restore lists,
and KVM_{G,S}ET_ONE_REG, all which are extremely difficult to validate in
KUT.

If kvm.ignore_msrs=true, skip the unsupported and reserved testcases as
KVM's ABI is a mess; what exactly is supposed to be ignored, and when,
varies wildly.

Reviewed-by: Chao Gao <chao.gao@intel.com>
Link: https://lore.kernel.org/r/20250919223258.1604852-46-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
2025-09-23 09:51:56 -07:00
..
apic.h
evmcs.h
hyperv.h
kvm_util_arch.h
mce.h
pmu.h KVM: selftests: Handle Intel Atom errata that leads to PMU event overcount 2025-09-23 08:38:59 -07:00
processor.h KVM: selftests: Add an MSR test to exercise guest/host and read/write 2025-09-23 09:51:56 -07:00
sev.h KVM: selftests: Add library support for interacting with SNP 2025-05-02 12:32:33 -07:00
svm.h
svm_util.h
ucall.h
vmx.h