KVM: SVM: Defer nmi processing until switch to host state is complete
authorAvi Kivity <avi@qumranet.com>
Wed, 7 Nov 2007 15:14:18 +0000 (17:14 +0200)
committerAvi Kivity <avi@qumranet.com>
Thu, 8 Nov 2007 10:05:43 +0000 (12:05 +0200)
commit56ba47ddbd5af7918bf1acdbe3deb979d0dcd64b
tree791ae295a0cb48c82aa66ad3aaf0485cf5853185
parent70433389ccfe2719ef5cd539d04172260294f0f5
KVM: SVM: Defer nmi processing until switch to host state is complete

If we stgi() too soon, nmis can reach the processor even though interrupts
are disabled, catching it in a half-switched state.  Delay the stgi() until
we're done switching.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/svm.c