aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm_main.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-11-11 11:37:32 -0500
committerAvi Kivity <avi@qumranet.com>2008-01-30 10:53:01 -0500
commit1a6f4d7fbd11e539630cd5637311a4e55fae60ef (patch)
treee5798c22c402c1e82f211b284758f991249876eb /drivers/kvm/kvm_main.c
parent906e608b05b87b650e509491e41c89575358df5e (diff)
KVM: Simplify CPU_TASKS_FROZEN cpu notifier handling
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm_main.c')
-rw-r--r--drivers/kvm/kvm_main.c4
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);