summaryrefslogtreecommitdiffstats
path: root/virt/kvm/kvm_main.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-05-10 12:08:26 +0200
committerAvi Kivity <avi@redhat.com>2010-08-01 09:47:06 +0200
commit0719837c0832a7b305e42327caa7d330462360ea (patch)
tree73f574529aa588d5270da0a9cf048a65e863ba93 /virt/kvm/kvm_main.c
parentKVM: Add mini-API for vcpu->requests (diff)
downloadlinux-0719837c0832a7b305e42327caa7d330462360ea.tar.xz
linux-0719837c0832a7b305e42327caa7d330462360ea.zip
KVM: Reduce atomic operations on vcpu->requests
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: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'virt/kvm/kvm_main.c')
0 files changed, 0 insertions, 0 deletions