kvm: do not need hardware_disable when CPU_UP_CANCELED
PATCH 1/1 kvm: do not need hardware_disable when CPU_UP_CANCELED
When CPU_UP_CANCELED, hardware_enable() has not been called at the CPU which is going up because raw_notifier_call_chain(CPU_ONLINE) has not been called for this cpu.
Signed-off-by Lai Jiangshan <[email protected]>
---
virt/kvm/kvm_main.c +0 -5
@@ -1921,11 +1921,6 @@ static int kvm_cpu_hotplug(struct notifier_block *notifier, unsigned long val, cpu);hardware_disable (NULL );break ; -case CPU_UP_CANCELED : -printk (KERN_INFO "kvm: disabling virtualization on CPU%d\n" , - cpu); -smp_call_function_single (cpu, hardware_disable,NULL ,1 ); -break ;case CPU_ONLINE :printk (KERN_INFO "kvm: enabling virtualization on CPU%d\n" , cpu);
Avi Kivity
AppliedQuoted 4 lines · Lai Jiangshan
When
CPU_UP_CANCELED,hardware_enable()has not been called at the CPU which is going up becauseraw_notifier_call_chain(CPU_ONLINE)has not been called for this cpu.
Applied, thanks.
Signature · 1 line
error compiling committee.c: too many arguments to function