KVM: Use CPU_DYING for disabling virtualization
authorAvi Kivity <avi@qumranet.com>
Thu, 24 May 2007 10:11:41 +0000 (13:11 +0300)
committerAvi Kivity <avi@qumranet.com>
Mon, 16 Jul 2007 09:05:51 +0000 (12:05 +0300)
commitcec9ad279b66793bee0b5009b7ca311060061efd
tree13608d474b725e3c155f2c4387b524743f60d4b8
parent4267c41a458cd7d287dc8031468fc385c2f5b2c3
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>
drivers/kvm/kvm_main.c