diff options
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index adcf73871a9d..bb04f11bf70f 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -3935,7 +3935,10 @@ int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int reason) | |||
3935 | kvm_x86_ops->set_rflags(vcpu, eflags & ~X86_EFLAGS_NT); | 3935 | kvm_x86_ops->set_rflags(vcpu, eflags & ~X86_EFLAGS_NT); |
3936 | } | 3936 | } |
3937 | 3937 | ||
3938 | kvm_x86_ops->skip_emulated_instruction(vcpu); | 3938 | /* set back link to prev task only if NT bit is set in eflags |
3939 | note that old_tss_sel is not used afetr this point */ | ||
3940 | if (reason != TASK_SWITCH_CALL && reason != TASK_SWITCH_GATE) | ||
3941 | old_tss_sel = 0xffff; | ||
3939 | 3942 | ||
3940 | /* set back link to prev task only if NT bit is set in eflags | 3943 | /* set back link to prev task only if NT bit is set in eflags |
3941 | note that old_tss_sel is not used afetr this point */ | 3944 | note that old_tss_sel is not used afetr this point */ |