]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Keep intercepting task switching with NPT enabled
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 18 Oct 2011 16:23:11 +0000 (18:23 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 30 Oct 2011 10:24:10 +0000 (12:24 +0200)
commitbb46304b25de6493a6e8b74cc94f1a7fc5d590c6
treedb3715f38fd012cece847d0f0918cbc12eb2123f
parentd9fd7e9b6a287083d554c6f18f7ff178141628c7
KVM: SVM: Keep intercepting task switching with NPT enabled

AMD processors apparently have a bug in the hardware task switching
support when NPT is enabled. If the task switch triggers a NPF, we can
get wrong EXITINTINFO along with that fault. On resume, spurious
exceptions may then be injected into the guest.

We were able to reproduce this bug when our guest triggered #SS and the
handler were supposed to run over a separate task with not yet touched
stack pages.

Work around the issue by continuing to emulate task switches even in
NPT mode.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/svm.c