linux/virt/kvm
Ming Lei 553f809e23 arm, kvm: fix double lock on cpu_add_remove_lock
Commit 8146875de7 (arm, kvm: Fix CPU hotplug callback registration)
holds the lock before calling the two functions:

	kvm_vgic_hyp_init()
	kvm_timer_hyp_init()

and both the two functions are calling register_cpu_notifier()
to register cpu notifier, so cause double lock on cpu_add_remove_lock.

Considered that both two functions are only called inside
kvm_arch_init() with holding cpu_add_remove_lock, so simply use
__register_cpu_notifier() to fix the problem.

Fixes: 8146875de7 (arm, kvm: Fix CPU hotplug callback registration)
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2014-04-08 13:15:54 +02:00
..
arm arm, kvm: fix double lock on cpu_add_remove_lock 2014-04-08 13:15:54 +02:00
assigned-dev.c
async_pf.c
async_pf.h
coalesced_mmio.c
coalesced_mmio.h
eventfd.c
ioapic.c
ioapic.h
iodev.h
iommu.c
irq_comm.c
irqchip.c
Kconfig
kvm_main.c
vfio.c