• A
    KVM: Reduce atomic operations on vcpu->requests · 0719837c
    Avi Kivity 提交于
    Usually the vcpu->requests bitmap is sparse, so a test_and_clear_bit() for
    each request generates a large number of unneeded atomics if a bit is set.
    
    Replace with a separate test/clear sequence.  This is safe since there is
    no clear_bit() outside the vcpu thread.
    Signed-off-by: NAvi Kivity <avi@redhat.com>
    0719837c
kvm_host.h 17.4 KB