• Sean Christopherson's avatar
    KVM: selftests: Use non-atomic clear/set bit helpers in KVM tests · 03a0c819
    Sean Christopherson authored
    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: default avatarSean Christopherson <seanjc@google.com>
    Message-Id: <20221119013450.2643007-7-seanjc@google.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    03a0c819
dirty_log_test.c 25.7 KB