KVM: switch coalesced mmio changes to slots_lock
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 29 Jun 2009 19:24:14 +0000 (22:24 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:33:04 +0000 (08:33 +0300)
commitd5c2dcc36aaf4dfdf9e01513493c71d71715f817
tree753b37e9f9530ed09670a89c94d31effb630a6c7
parent69fa2d78653918d200220ca62d44715827e6d617
KVM: switch coalesced mmio changes to slots_lock

switch coalesced mmio slots_lock.  slots_lock is already taken for read
everywhere, so we only need to take it for write when changing zones.
This is in preparation to removing in_range and kvm->lock around it.

[avi: fix build]

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
virt/kvm/coalesced_mmio.c