]> git.baikalelectronics.ru Git - kernel.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>
Sun, 25 Sep 2011 16:17:18 +0000 (19:17 +0300)
commit7ebe6f5c74d02a02cb69eff6564599324c1d55d6
treea553f1507496afae35c2a7eaefb5a45be25738e0
parent4e19ef42a32f1371ecea9fa0082e3527c5d1615d
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