KVM: SVM: Skip instruction on a task switch only when appropriate
authorGleb Natapov <gleb@redhat.com>
Sun, 12 Apr 2009 10:37:02 +0000 (13:37 +0300)
committerAvi Kivity <avi@redhat.com>
Wed, 10 Jun 2009 08:48:42 +0000 (11:48 +0300)
commit8317c298eab14cc20e2de5289743ff0d4c5a6b30
tree54f1cea27bd5f8cf55bc268f6236931c4bb458c6
parentba8afb6b0a2c7e06da760ffe5d078245058619b5
KVM: SVM: Skip instruction on a task switch only when appropriate

If a task switch was initiated because off a task gate in IDT and IDT
was accessed because of an external even the instruction should not
be skipped.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/svm.c