aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2009-10-25 17:45:07 +0200
committerAvi Kivity <avi@redhat.com>2009-12-03 09:32:22 +0200
commit1655e3a3dc16e21b60d9950e201b38a9894f1bcf (patch)
tree3fd97ca395740b811b29578daa735b72dd34b298 /arch/x86/kvm/x86.c
parentKVM: powerpc: Fix BUILD_BUG_ON condition (diff)
downloadlinux-dev-1655e3a3dc16e21b60d9950e201b38a9894f1bcf.tar.xz
linux-dev-1655e3a3dc16e21b60d9950e201b38a9894f1bcf.zip
KVM: remove duplicated task_switch check
Probably introduced by a bad merge. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to '')
-rw-r--r--arch/x86/kvm/x86.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 58c5cddf363d..dbddcc2d2c97 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -4530,11 +4530,6 @@ int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int reason)
if (reason != TASK_SWITCH_CALL && reason != TASK_SWITCH_GATE)
old_tss_sel = 0xffff;
- /* set back link to prev task only if NT bit is set in eflags
- note that old_tss_sel is not used afetr this point */
- if (reason != TASK_SWITCH_CALL && reason != TASK_SWITCH_GATE)
- old_tss_sel = 0xffff;
-
if (nseg_desc.type & 8)
ret = kvm_task_switch_32(vcpu, tss_selector, old_tss_sel,
old_tss_base, &nseg_desc);