KVM: take kvm_lock for hardware_disable() during cpu hotplug
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Tue, 16 Nov 2010 08:35:02 +0000 (17:35 +0900)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:29:28 +0000 (11:29 +0200)
commit97e91e28fa8fcbac30beab3de72060ada27d5671
treeb6a1331007935961eb25157e7cceba13d9587090
parente730b63cc083852551b092e1c93f0ef22c25f220
KVM: take kvm_lock for hardware_disable() during cpu hotplug

In kvm_cpu_hotplug(), only CPU_STARTING case is protected by kvm_lock.
This patch adds missing protection for CPU_DYING case.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
virt/kvm/kvm_main.c