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
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
hyperv_svm_test.c
hyperv_tlb_flush.c
kvm_buslock_test.c
kvm_clock_test.c
kvm_pv_test.c
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
nested_exceptions_test.c
nx_huge_pages_test.c
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
sev_init2_tests.c
sev_migrate_tests.c
sev_smoke_test.c
smaller_maxphyaddr_emulation_test.c
smm_test.c
state_test.c
svm_int_ctl_test.c
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
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
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