]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: SVM: Move INTR vmexit out of atomic code
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 9 Oct 2009 14:08:26 +0000 (16:08 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 12 Oct 2009 18:36:33 +0000 (15:36 -0300)
commitc30f67cc8af664ccaf61f36bd04a1b587027fdfc
tree86ccf5cc01dea01f2b647994b911c0e1ce79fbd4
parent4a4f4f1bf7dc1b6d13e1f7ff5e22eef6bd51dc3c
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