]> bbs.cooldavid.org Git - net-next-2.6.git/commit
KVM: switch pit creation to slots_lock
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 29 Jun 2009 19:24:21 +0000 (22:24 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:33:05 +0000 (08:33 +0300)
commit108b56690f35e083c5559116d6656f59a557a815
tree64e5af9be0b4ebda257ea30ba8955cf0b3c96509
parentd5c2dcc36aaf4dfdf9e01513493c71d71715f817
KVM: switch pit creation to slots_lock

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

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