mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
KVM: Use CPU_DYING for disabling virtualization
Only at the CPU_DYING stage can we be sure that no user process will be scheduled onto the cpu and oops when trying to use virtualization extensions. Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
parent
4267c41a45
commit
cec9ad279b
1 changed files with 2 additions and 2 deletions
|
@ -3004,8 +3004,8 @@ static int kvm_cpu_hotplug(struct notifier_block *notifier, unsigned long val,
|
|||
int cpu = (long)v;
|
||||
|
||||
switch (val) {
|
||||
case CPU_DOWN_PREPARE:
|
||||
case CPU_DOWN_PREPARE_FROZEN:
|
||||
case CPU_DYING:
|
||||
case CPU_DYING_FROZEN:
|
||||
case CPU_UP_CANCELED:
|
||||
case CPU_UP_CANCELED_FROZEN:
|
||||
printk(KERN_INFO "kvm: disabling virtualization on CPU%d\n",
|
||||
|
|
Loading…
Reference in a new issue