Commit 66cbff59a16017234ea6c80ecddfc17b27a83504

Authored by Lai Jiangshan
Committed by Avi Kivity
1 parent 87bc3bf972

KVM: do not call hardware_disable() on 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.

Drop the handling for CPU_UP_CANCELED.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

Showing 1 changed file with 0 additions and 5 deletions Side-by-side Diff

... ... @@ -1931,11 +1931,6 @@
1931 1931 cpu);
1932 1932 hardware_disable(NULL);
1933 1933 break;
1934   - case CPU_UP_CANCELED:
1935   - printk(KERN_INFO "kvm: disabling virtualization on CPU%d\n",
1936   - cpu);
1937   - smp_call_function_single(cpu, hardware_disable, NULL, 1);
1938   - break;
1939 1934 case CPU_ONLINE:
1940 1935 printk(KERN_INFO "kvm: enabling virtualization on CPU%d\n",
1941 1936 cpu);