]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - arch/x86/kvm/x86.c
KVM: Fix unneeded instruction skipping during task switching.
authorGleb Natapov <gleb@redhat.com>
Mon, 30 Mar 2009 13:03:29 +0000 (16:03 +0300)
committerAvi Kivity <avi@redhat.com>
Wed, 10 Jun 2009 08:48:38 +0000 (11:48 +0300)
commit64a7ec066813443440bfc9f60a9e76a47cfa6b2b
treed6d3461ba7667ac2801350d5b3b518e84b5df0f6
parentb237ac37a149e8b56436fabf093532483bff13b0
KVM: Fix unneeded instruction skipping during task switching.

There is no need to skip instruction if the reason for a task switch
is a task gate in IDT and access to it is caused by an external even.
The problem  is currently solved only for VMX since there is no reliable
way to skip an instruction in SVM. We should emulate it instead.

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