[RFC PATCH v4 8/9] kvm, vmx: Add atomic synchronization with CPU Hotplug

2012-12-11 Thread Srivatsa S. Bhat
preempt_disable() will no longer help prevent CPUs from going offline, once stop_machine() gets removed from the CPU offline path. So use get/put_online_cpus_atomic() in vmx_vcpu_load() to prevent CPUs from going offline while clearing vmcs. Reported-by: Michael Wang Debugged-by: Xiao Guangrong

[RFC PATCH v4 8/9] kvm, vmx: Add atomic synchronization with CPU Hotplug

2012-12-11 Thread Srivatsa S. Bhat
preempt_disable() will no longer help prevent CPUs from going offline, once stop_machine() gets removed from the CPU offline path. So use get/put_online_cpus_atomic() in vmx_vcpu_load() to prevent CPUs from going offline while clearing vmcs. Reported-by: Michael Wang wang...@linux.vnet.ibm.com