linux-stable/tools/testing/selftests/kvm/x86_64
Sean Christopherson 5a7591176c KVM: selftests: Expand x86's sregs test to cover illegal CR0 values
Add coverage to x86's set_sregs_test to verify KVM rejects vendor-agnostic
illegal CR0 values, i.e. CR0 values whose legality doesn't depend on the
current VMX mode.  KVM historically has neglected to reject bad CR0s from
userspace, i.e. would happily accept a completely bogus CR0 via
KVM_SET_SREGS{2}.

Punt VMX specific subtests to future work, as they would require quite a
bit more effort, and KVM gets coverage for CR0 checks in general through
other means, e.g. KVM-Unit-Tests.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20230613203037.1968489-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2023-07-29 11:05:32 -04:00
..
amx_test.c KVM: selftests: Add all known XFEATURE masks to common code 2023-04-11 10:19:03 -07:00
cpuid_test.c KVM: selftests: Extend cpuid_test to verify KVM_GET_CPUID2 "nent" updates 2023-06-01 14:07:14 -07:00
cr4_cpuid_sync_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
debug_regs.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
dirty_log_page_splitting_test.c KVM: selftests: Add dirty logging page splitting test 2023-06-01 14:03:19 -07:00
exit_on_emulation_failure_test.c KVM: selftests: Remove redundant setbuf() 2023-02-03 21:26:48 +00:00
fix_hypercall_test.c KVM: selftests: x86: Cache host CPU vendor (AMD vs. Intel) 2023-01-24 10:06:32 -08:00
flds_emulation.h KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04: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: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
hyperv_cpuid.c KVM: selftests: move common startup logic to kvm_util.c 2022-11-16 16:58:56 -08:00
hyperv_evmcs.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
hyperv_extended_hypercalls.c KVM: selftests: Test Hyper-V extended hypercall exit to userspace 2023-02-01 14:31:27 -08:00
hyperv_features.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
hyperv_ipi.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
hyperv_svm_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
hyperv_tlb_flush.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
kvm_clock_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
kvm_pv_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04: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: x86: Cache host CPU vendor (AMD vs. Intel) 2023-01-24 10:06:32 -08:00
monitor_mwait_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
nested_exceptions_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
nx_huge_pages_test.c KVM: selftests: Fix spelling mistake "miliseconds" -> "milliseconds" 2023-05-30 15:03:03 -07: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: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
pmu_event_filter_test.c KVM selftests, and an AMX/XCR0 bugfix, for 6.4: 2023-04-26 15:56:01 -04:00
recalc_apic_map_test.c KVM: selftests: Add test for race in kvm_recalculate_apic_map() 2023-06-02 17:21:06 -07: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: Expand x86's sregs test to cover illegal CR0 values 2023-07-29 11:05:32 -04: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: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
state_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
svm_int_ctl_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
svm_nested_shutdown_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
svm_nested_soft_inject_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
svm_vmcall_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
sync_regs_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
triple_fault_event_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
tsc_msrs_test.c KVM: selftests: x86: Use TAP interface in the tsc_msrs_test 2022-12-29 15:33:15 -05:00
tsc_scaling_sync.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
ucna_injection_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
userspace_io_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
userspace_msr_exit_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
vmx_apic_access_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
vmx_close_while_nested_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
vmx_dirty_log_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
vmx_exception_with_invalid_guest_state.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
vmx_invalid_nested_guest_state.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
vmx_msrs_test.c KVM: selftests: Verify userspace can stuff IA32_FEATURE_CONTROL at will 2022-11-30 16:29:54 -08:00
vmx_nested_tsc_scaling_test.c KVM: selftests: Refactor stable TSC check to use TEST_REQUIRE() 2023-05-30 15:03:02 -07:00
vmx_pmu_caps_test.c KVM selftests, and an AMX/XCR0 bugfix, for 6.4: 2023-04-26 15:56:01 -04:00
vmx_preemption_timer_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04: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: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
xapic_ipi_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
xapic_state_test.c KVM: selftests: Verify APIC_ID is set when forcing x2APIC=>xAPIC transition 2023-02-01 16:22:54 -08:00
xcr0_cpuid_test.c KVM: selftests: Add test to verify KVM's supported XCR0 2023-04-11 10:19:04 -07:00
xen_shinfo_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04:00
xen_vmcall_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -04: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