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>
Sun, 25 Sep 2011 16:17:18 +0000 (19:17 +0300)
commitc298125f4bc30fdbe4b7c33460ef57271cc51a7d
treea553f1507496afae35c2a7eaefb5a45be25738e0
parent22388a3c8ce2a2a004ce764194cce8a2f9b13d66
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