1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-24 09:13:20 -05:00
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
cr4_cpuid_sync_test.c
debug_regs.c
exit_on_emulation_failure_test.c
fix_hypercall_test.c
flds_emulation.h
get_msr_index_features.c
hyperv_clock.c
hyperv_cpuid.c
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_pv_test.c
max_vcpuid_cap_test.c
mmio_warning_test.c
monitor_mwait_test.c
nested_exceptions_test.c
nx_huge_pages_test.c
nx_huge_pages_test.sh
platform_info_test.c
pmu_event_filter_test.c
set_boot_cpu_id.c
set_sregs_test.c
sev_migrate_tests.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
vmx_apic_access_test.c
vmx_close_while_nested_test.c
vmx_dirty_log_test.c
vmx_exception_with_invalid_guest_state.c
vmx_invalid_nested_guest_state.c
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
vmx_pmu_caps_test.c
vmx_preemption_timer_test.c
vmx_set_nested_state_test.c
vmx_tsc_adjust_test.c
xapic_ipi_test.c
xapic_state_test.c
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
xss_msr_test.c