commit | 0719837c0832a7b305e42327caa7d330462360ea | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Mon May 10 13:08:26 2010 +0300 |
committer | Avi Kivity <avi@redhat.com> | Sun Aug 01 10:47:06 2010 +0300 |
tree | 73f574529aa588d5270da0a9cf048a65e863ba93 | |
parent | a8eeb04a44dd6dc4c8158953d9bae48849c9a188 [diff] |
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>