linux/tools/testing/selftests/kvm/x86_64
Sean Christopherson 03a0c819e7 KVM: selftests: Use non-atomic clear/set bit helpers in KVM tests
Use the dedicated non-atomic helpers for {clear,set}_bit() and their
test variants, i.e. the double-underscore versions.  Depsite being
defined in atomic.h, and despite the kernel versions being atomic in the
kernel, tools' {clear,set}_bit() helpers aren't actually atomic.  Move
to the double-underscore versions so that the versions that are expected
to be atomic (for kernel developers) can be made atomic without affecting
users that don't want atomic operations.

Leave the usage in ucall_free() as-is, it's the one place in tools/ that
actually wants/needs atomic behavior.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20221119013450.2643007-7-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-12-02 13:22:33 -05:00
..
amx_test.c KVM: selftests: Do kvm_cpu_has() checks before creating VM+vCPU 2022-12-01 15:31:46 -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
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_evmcs.c KVM: selftests: Use non-atomic clear/set bit helpers in KVM tests 2022-12-02 13:22:33 -05: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: Use non-atomic clear/set bit helpers in KVM tests 2022-12-02 13:22:33 -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 userspace can stuff IA32_FEATURE_CONTROL at will 2022-11-30 16:29:54 -08: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: x86/xen: Add runstate tests for 32-bit mode and crossing page boundary 2022-11-30 11:03:18 -05: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