diff options
Diffstat (limited to 'drivers/kvm')
-rw-r--r-- | drivers/kvm/kvm_main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c index 8d6e55f95fbb..d395c987894e 100644 --- a/drivers/kvm/kvm_main.c +++ b/drivers/kvm/kvm_main.c | |||
@@ -1335,21 +1335,19 @@ static int kvm_cpu_hotplug(struct notifier_block *notifier, unsigned long val, | |||
1335 | { | 1335 | { |
1336 | int cpu = (long)v; | 1336 | int cpu = (long)v; |
1337 | 1337 | ||
1338 | val &= ~CPU_TASKS_FROZEN; | ||
1338 | switch (val) { | 1339 | switch (val) { |
1339 | case CPU_DYING: | 1340 | case CPU_DYING: |
1340 | case CPU_DYING_FROZEN: | ||
1341 | printk(KERN_INFO "kvm: disabling virtualization on CPU%d\n", | 1341 | printk(KERN_INFO "kvm: disabling virtualization on CPU%d\n", |
1342 | cpu); | 1342 | cpu); |
1343 | hardware_disable(NULL); | 1343 | hardware_disable(NULL); |
1344 | break; | 1344 | break; |
1345 | case CPU_UP_CANCELED: | 1345 | case CPU_UP_CANCELED: |
1346 | case CPU_UP_CANCELED_FROZEN: | ||
1347 | printk(KERN_INFO "kvm: disabling virtualization on CPU%d\n", | 1346 | printk(KERN_INFO "kvm: disabling virtualization on CPU%d\n", |
1348 | cpu); | 1347 | cpu); |
1349 | smp_call_function_single(cpu, hardware_disable, NULL, 0, 1); | 1348 | smp_call_function_single(cpu, hardware_disable, NULL, 0, 1); |
1350 | break; | 1349 | break; |
1351 | case CPU_ONLINE: | 1350 | case CPU_ONLINE: |
1352 | case CPU_ONLINE_FROZEN: | ||
1353 | printk(KERN_INFO "kvm: enabling virtualization on CPU%d\n", | 1351 | printk(KERN_INFO "kvm: enabling virtualization on CPU%d\n", |
1354 | cpu); | 1352 | cpu); |
1355 | smp_call_function_single(cpu, hardware_enable, NULL, 0, 1); | 1353 | smp_call_function_single(cpu, hardware_enable, NULL, 0, 1); |