KVM: Make coalesced mmio use a device per zone
authorSasha Levin <levinsasha928@gmail.com>
Wed, 20 Jul 2011 17:59:00 +0000 (20:59 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 16:17:57 +0000 (19:17 +0300)
commit2b3c246a682c50f5415c71fc5387a114a6f0d643
treee520633a4c5460bd4e8ebd761af06d1a3af8b722
parent8c3ba334f8588e1d5099f8602cf01897720e0eca
KVM: Make coalesced mmio use a device per zone

This patch changes coalesced mmio to create one mmio device per
zone instead of handling all zones in one device.

Doing so enables us to take advantage of existing locking and prevents
a race condition between coalesced mmio registration/unregistration
and lookups.

Suggested-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
include/linux/kvm_host.h
virt/kvm/coalesced_mmio.c
virt/kvm/coalesced_mmio.h