KVM: SVM: Move INTR vmexit out of atomic code
commitcd3ff653ae0b45bac7a19208e9c75034fcacc85f
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 9 Oct 2009 14:08:26 +0000 (9 16:08 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 3 Dec 2009 07:32:15 +0000 (3 09:32 +0200)
tree636bee346e23154216babd9d588ff7715ac11859
parent8d23c4662427507f432c96ac4fa3b76f0a8360cd
KVM: SVM: Move INTR vmexit out of atomic code

The nested SVM code emulates a #vmexit caused by a request
to open the irq window right in the request function. This
is a bug because the request function runs with preemption
and interrupts disabled but the #vmexit emulation might
sleep. This can cause a schedule()-while-atomic bug and is
fixed with this patch.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/svm.c