]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7876bba921608e53e30024ab34474c12d4761a5
treee520633a4c5460bd4e8ebd761af06d1a3af8b722
parentfef17072c5708cfa441c0ff54fbccdaa69a278e4
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