linux/tools/testing/selftests/kvm/x86_64
Vitaly Kuznetsov 75ee7505fe KVM: selftests: Introduce rdmsr_from_l2() and use it for MSR-Bitmap tests
Hyper-V MSR-Bitmap tests do RDMSR from L2 to exit to L1. While 'evmcs_test'
correctly clobbers all GPRs (which are not preserved), 'hyperv_svm_test'
does not. Introduce a more generic rdmsr_from_l2() to avoid code
duplication and remove hardcoding of MSRs.  Do not put it in common code
because it is really just a selftests bug rather than a processor
feature that requires it.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20221101145426.251680-46-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-11-21 06:42:39 -05:00
..
amx_test.c KVM: selftests: Convert AMX test to use X86_PROPRETY_XXX 2022-11-16 16:59:05 -08:00
cpuid_test.c KVM: selftests: Use X86_PROPERTY_MAX_KVM_LEAF in CPUID test 2022-11-16 16:59:03 -08:00
cr4_cpuid_sync_test.c KVM: selftests: move common startup logic to kvm_util.c 2022-11-16 16:58:56 -08:00
debug_regs.c KVM: selftests: Add TEST_REQUIRE macros to reduce skipping copy+paste 2022-06-11 11:47:29 -04:00
evmcs_test.c KVM: selftests: Introduce rdmsr_from_l2() and use it for MSR-Bitmap tests 2022-11-21 06:42:39 -05:00
exit_on_emulation_failure_test.c KVM: selftests: Add a test for KVM_CAP_EXIT_ON_EMULATION_FAILURE 2022-11-16 16:59:02 -08:00
fix_hypercall_test.c KVM: selftests: Dedup subtests of fix_hypercall_test 2022-09-30 06:39:34 -04:00
flds_emulation.h KVM: selftests: Move flds instruction emulation failure handling to header 2022-11-16 16:58:59 -08:00
get_msr_index_features.c KVM: selftests: Add TEST_REQUIRE macros to reduce skipping copy+paste 2022-06-11 11:47:29 -04:00
hyperv_clock.c KVM: selftests: Fix filename reporting in guest asserts 2022-07-13 18:14:08 -07:00
hyperv_cpuid.c KVM: selftests: move common startup logic to kvm_util.c 2022-11-16 16:58:56 -08:00
hyperv_features.c KVM: selftests: Hyper-V PV IPI selftest 2022-11-18 13:07:58 -05:00
hyperv_ipi.c KVM: selftests: Hyper-V PV IPI selftest 2022-11-18 13:07:58 -05:00
hyperv_svm_test.c KVM: selftests: Introduce rdmsr_from_l2() and use it for MSR-Bitmap tests 2022-11-21 06:42:39 -05:00
hyperv_tlb_flush.c KVM: selftests: Hyper-V PV TLB flush selftest 2022-11-21 06:40:01 -05:00
kvm_clock_test.c KVM: selftests: Fix filename reporting in guest asserts 2022-07-13 18:14:08 -07:00
kvm_pv_test.c KVM: selftests: Use vcpu_get_cpuid_entry() in PV features test (sort of) 2022-07-13 18:14:18 -07:00
max_vcpuid_cap_test.c KVM: selftests: Rename vm_create() => vm_create_barebones(), drop param 2022-06-11 11:46:33 -04:00
mmio_warning_test.c KVM: selftests: Sanity check input to ioctls() at build time 2022-06-11 11:48:09 -04:00
monitor_mwait_test.c KVM: selftests: Use vcpu_clear_cpuid_feature() in monitor_mwait_test 2022-07-13 18:14:17 -07:00
nested_exceptions_test.c KVM: selftests: Add an x86-only test to verify nested exception queueing 2022-09-26 12:03:12 -04:00
nx_huge_pages_test.c KVM: selftests: Add atoi_positive() and atoi_non_negative() for input validation 2022-11-16 10:03:24 -08:00
nx_huge_pages_test.sh KVM: selftests: Test disabling NX hugepages on a VM 2022-06-24 04:51:51 -04:00
platform_info_test.c KVM: selftests: move common startup logic to kvm_util.c 2022-11-16 16:58:56 -08:00
pmu_event_filter_test.c KVM: selftests: Add and use KVM helpers for x86 Family and Model 2022-11-16 16:59:06 -08:00
set_boot_cpu_id.c KVM: selftests: Fix filename reporting in guest asserts 2022-07-13 18:14:08 -07:00
set_sregs_test.c KVM: selftests: move common startup logic to kvm_util.c 2022-11-16 16:58:56 -08:00
sev_migrate_tests.c KVM: selftests: Use kvm_cpu_has() in the SEV migration test 2022-07-13 18:14:09 -07:00
smaller_maxphyaddr_emulation_test.c KVM: selftests: Expect #PF(RSVD) when TDP is disabled 2022-11-16 16:59:01 -08:00
smm_test.c KVM: allow compiling out SMM support 2022-11-09 12:31:19 -05:00
state_test.c KVM: selftests: Use this_cpu_has() to detect SVM support in L1 2022-07-13 18:14:22 -07:00
svm_int_ctl_test.c KVM: selftests: Use kvm_cpu_has() for nested SVM checks 2022-07-13 18:14:10 -07:00
svm_nested_shutdown_test.c kvm: selftests: add svm nested shutdown test 2022-11-17 11:39:59 -05:00
svm_nested_soft_inject_test.c KVM: selftests: move common startup logic to kvm_util.c 2022-11-16 16:58:56 -08:00
svm_vmcall_test.c KVM: selftests: Use kvm_cpu_has() for nested SVM checks 2022-07-13 18:14:10 -07:00
sync_regs_test.c KVM: selftests: move common startup logic to kvm_util.c 2022-11-16 16:58:56 -08:00
triple_fault_event_test.c KVM: selftests: add svm part to triple_fault_test 2022-11-17 11:40:00 -05:00
tsc_msrs_test.c KVM: selftests: Fix filename reporting in guest asserts 2022-07-13 18:14:08 -07:00
tsc_scaling_sync.c KVM: selftests: Add TEST_REQUIRE macros to reduce skipping copy+paste 2022-06-11 11:47:29 -04:00
ucna_injection_test.c KVM: selftests: Add a self test for CMCI and UCNA emulations. 2022-06-24 04:52:04 -04:00
userspace_io_test.c KVM: selftests: move common startup logic to kvm_util.c 2022-11-16 16:58:56 -08:00
userspace_msr_exit_test.c KVM: selftests: move common startup logic to kvm_util.c 2022-11-16 16:58:56 -08:00
vmx_apic_access_test.c KVM: selftests: Use kvm_cpu_has() for nested VMX checks 2022-07-13 18:14:10 -07:00
vmx_close_while_nested_test.c KVM: selftests: Use kvm_cpu_has() for nested VMX checks 2022-07-13 18:14:10 -07:00
vmx_dirty_log_test.c KVM: selftests: Assert in prepare_eptp() that nEPT is supported 2022-11-16 16:59:07 -08:00
vmx_exception_with_invalid_guest_state.c KVM: selftests: Add TEST_REQUIRE macros to reduce skipping copy+paste 2022-06-11 11:47:29 -04:00
vmx_invalid_nested_guest_state.c KVM: selftests: Use kvm_cpu_has() for nested VMX checks 2022-07-13 18:14:10 -07:00
vmx_msrs_test.c KVM: selftests: Verify VMX MSRs can be restored to KVM-supported values 2022-07-28 13:25:24 -04:00
vmx_nested_tsc_scaling_test.c KVM: selftests: Use kvm_cpu_has() for nested VMX checks 2022-07-13 18:14:10 -07:00
vmx_pmu_caps_test.c KVM: selftests: Convert vmx_pmu_caps_test to use X86_PROPERTY_* 2022-11-16 16:59:05 -08:00
vmx_preemption_timer_test.c KVM: selftests: Use kvm_cpu_has() for nested VMX checks 2022-07-13 18:14:10 -07:00
vmx_set_nested_state_test.c KVM: selftests: Use vcpu_{set,clear}_cpuid_feature() in nVMX state test 2022-07-13 18:14:19 -07:00
vmx_tsc_adjust_test.c KVM: selftests: Use kvm_cpu_has() for nested VMX checks 2022-07-13 18:14:10 -07:00
xapic_ipi_test.c KVM: selftests: Purge vm+vcpu_id == vcpu silliness 2022-06-11 11:47:22 -04:00
xapic_state_test.c KVM: selftests: Don't assume vcpu->id is '0' in xAPIC state test 2022-11-16 16:58:58 -08:00
xen_shinfo_test.c KVM: selftests: Mark "guest_saw_irq" as volatile in xen_shinfo_test 2022-10-28 06:10:28 -04:00
xen_vmcall_test.c KVM: selftests: Fix filename reporting in guest asserts 2022-07-13 18:14:08 -07:00
xss_msr_test.c KVM: selftests: Use kvm_cpu_has() for XSAVES in XSS MSR test 2022-07-13 18:14:11 -07:00