]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: MMIO: Lock coalesced device when checking for available entry
authorSasha Levin <levinsasha928@gmail.com>
Mon, 18 Jul 2011 14:17:14 +0000 (17:17 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 29 Aug 2011 13:21:39 +0000 (16:21 +0300)
commit6ca1ace16ea456fd2363205723cd8a7de41dd6af
treefc72cf31c2d535bf4b5a451ff3ff046f042673b5
parent76e184ed00ef062db9a10ab0a293d6546ffda4d9
KVM: MMIO: Lock coalesced device when checking for available entry

Move the check whether there are available entries to within the spinlock.
This allows working with larger amount of VCPUs and reduces premature
exits when using a large number of VCPUs.

Cc: Avi Kivity <avi@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
virt/kvm/coalesced_mmio.c