projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4267c41
)
KVM: Use CPU_DYING for disabling virtualization
author
Avi Kivity
<avi@qumranet.com>
Thu, 24 May 2007 10:11:41 +0000
(13:11 +0300)
committer
Avi Kivity
<avi@qumranet.com>
Mon, 16 Jul 2007 09:05:51 +0000
(12:05 +0300)
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>
drivers/kvm/kvm_main.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/kvm/kvm_main.c
b/drivers/kvm/kvm_main.c
index 603e8ce3d65e8d30ce77127bc2ff778e6693c200..1b206f197c6b5a4d2cd015ea57fcf554ef1a772b 100644
(file)
--- a/
drivers/kvm/kvm_main.c
+++ b/
drivers/kvm/kvm_main.c
@@
-3004,8
+3004,8
@@
static int kvm_cpu_hotplug(struct notifier_block *notifier, unsigned long val,
int cpu = (long)v;
switch (val) {
- case CPU_D
OWN_PREPARE
:
- case CPU_D
OWN_PREPARE
_FROZEN:
+ case CPU_D
YING
:
+ case CPU_D
YING
_FROZEN:
case CPU_UP_CANCELED:
case CPU_UP_CANCELED_FROZEN:
printk(KERN_INFO "kvm: disabling virtualization on CPU%d\n",