linux/tools/testing/selftests/kvm/x86
Sean Christopherson 947ab90c91 KVM: selftests: Verify MSRs are (not) in save/restore list when (un)supported
Add a check in the MSRs test to verify that KVM's reported support for
MSRs with feature bits is consistent between KVM's MSR save/restore lists
and KVM's supported CPUID.

To deal with Intel's wonderful decision to bundle IBT and SHSTK under CET,
track the "second" feature to avoid false failures when running on a CPU
with only one of IBT or SHSTK.

Reviewed-by: Chao Gao <chao.gao@intel.com>
Link: https://lore.kernel.org/r/20250919223258.1604852-51-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
2025-09-23 10:03:02 -07:00
..
amx_test.c
aperfmperf_test.c KVM: selftests: Test behavior of KVM_X86_DISABLE_EXITS_APERFMPERF 2025-07-09 09:33:41 -07:00
apic_bus_clock_test.c
cpuid_test.c
cr4_cpuid_sync_test.c
debug_regs.c
dirty_log_page_splitting_test.c KVM: selftests: Macrofy vm_get_stat() to auto-generate stat name string 2025-02-14 07:01:55 -08:00
exit_on_emulation_failure_test.c
fastops_test.c KVM: selftests: Add support for DIV and IDIV in the fastops test 2025-09-11 08:55:44 -07:00
feature_msrs_test.c
fix_hypercall_test.c
flds_emulation.h
hwcr_msr_test.c
hyperv_clock.c
hyperv_cpuid.c KVM: selftests: Fix typo in hyperv cpuid test message 2025-09-08 13:03:22 -07:00
hyperv_evmcs.c
hyperv_extended_hypercalls.c
hyperv_features.c KVM: selftests: Add ex_str() to print human friendly name of exception vectors 2025-09-23 08:39:02 -07:00
hyperv_ipi.c KVM: selftests: Add helpers for locally (un)blocking IRQs on x86 2025-01-08 12:57:03 -08:00
hyperv_svm_test.c
hyperv_tlb_flush.c
kvm_buslock_test.c KVM: selftests: Add test to verify KVM_CAP_X86_BUS_LOCK_EXIT 2025-05-19 11:05:19 -07:00
kvm_clock_test.c
kvm_pv_test.c KVM: selftests: Update x86's KVM PV test to match KVM's disabling exits behavior 2024-12-18 14:19:39 -08:00
max_vcpuid_cap_test.c
monitor_mwait_test.c KVM: selftests: Add ex_str() to print human friendly name of exception vectors 2025-09-23 08:39:02 -07:00
msrs_test.c KVM: selftests: Verify MSRs are (not) in save/restore list when (un)supported 2025-09-23 10:03:02 -07:00
nested_emulation_test.c KVM: selftests: Add a nested (forced) emulation intercept test for x86 2025-02-24 09:01:07 -08:00
nested_exceptions_test.c KVM: selftests: Assert that STI blocking isn't set after event injection 2025-02-28 09:15:23 -08:00
nx_huge_pages_test.c KVM: selftests: Macrofy vm_get_stat() to auto-generate stat name string 2025-02-14 07:01:55 -08:00
nx_huge_pages_test.sh
platform_info_test.c
pmu_counters_test.c KVM: x86: Merge 'selftests' into 'cet' to pick up ex_str() 2025-09-23 09:00:18 -07:00
pmu_event_filter_test.c KVM: selftests: Handle Intel Atom errata that leads to PMU event overcount 2025-09-23 08:38:59 -07:00
private_mem_conversions_test.c
private_mem_kvm_exits_test.c
recalc_apic_map_test.c
set_boot_cpu_id.c
set_sregs_test.c KVM: selftests: Verify KVM stuffs runtime CPUID OS bits on CR4 writes 2024-12-18 14:19:31 -08:00
sev_init2_tests.c KVM: selftests: SEV-SNP test for KVM_SEV_INIT2 2025-05-02 12:32:32 -07:00
sev_migrate_tests.c
sev_smoke_test.c KVM: selftests: Add a basic SEV-SNP smoke test 2025-05-02 13:05:32 -07:00
smaller_maxphyaddr_emulation_test.c
smm_test.c
state_test.c
svm_int_ctl_test.c KVM: selftests: Add helpers for locally (un)blocking IRQs on x86 2025-01-08 12:57:03 -08:00
svm_nested_shutdown_test.c
svm_nested_soft_inject_test.c
svm_vmcall_test.c
sync_regs_test.c
triple_fault_event_test.c
tsc_msrs_test.c
tsc_scaling_sync.c
ucna_injection_test.c KVM: selftests: Add helpers for locally (un)blocking IRQs on x86 2025-01-08 12:57:03 -08:00
userspace_io_test.c
userspace_msr_exit_test.c KVM: selftests: Verify KVM disable interception (for userspace) on filter change 2025-06-20 13:07:38 -07:00
vmx_apic_access_test.c
vmx_close_while_nested_test.c
vmx_dirty_log_test.c
vmx_exception_with_invalid_guest_state.c KVM: selftests: Verify KVM is loaded when getting a KVM module param 2025-06-20 13:39:10 -07:00
vmx_invalid_nested_guest_state.c
vmx_msrs_test.c
vmx_nested_tsc_scaling_test.c
vmx_pmu_caps_test.c KVM: selftests: Add ex_str() to print human friendly name of exception vectors 2025-09-23 08:39:02 -07:00
vmx_preemption_timer_test.c
vmx_set_nested_state_test.c
vmx_tsc_adjust_test.c
xapic_ipi_test.c KVM selftests changes for 6.15, part 2 2025-03-19 09:05:34 -04:00
xapic_state_test.c selftests/kvm: remove stale TODO in xapic_state_test 2025-09-23 08:39:01 -07:00
xcr0_cpuid_test.c KVM: selftests: Add ex_str() to print human friendly name of exception vectors 2025-09-23 08:39:02 -07:00
xen_shinfo_test.c KVM: selftests: Add utilities to create eventfds and do KVM_IRQFD 2025-06-23 09:51:01 -07:00
xen_vmcall_test.c
xss_msr_test.c