]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Don't spin on virt instruction faults during reboot
authorAvi Kivity <avi@redhat.com>
Thu, 2 Dec 2010 15:52:50 +0000 (17:52 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:30:18 +0000 (11:30 +0200)
commit5b0d5513f1f3c0d42cbb799e7411de8bbb2f658c
tree9b259970f56451ecb0f5d84ecd81d67386f63224
parentc7ac831197bca530f27a4386db5ab014cb2b080a
KVM: Don't spin on virt instruction faults during reboot

Since vmx blocks INIT signals, we disable virtualization extensions during
reboot.  This leads to virtualization instructions faulting; we trap these
faults and spin while the reboot continues.

Unfortunately spinning on a non-preemptible kernel may block a task that
reboot depends on; this causes the reboot to hang.

Fix by skipping over the instruction and hoping for the best.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
virt/kvm/kvm_main.c