aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 58a295c6bf62..30efeead4511 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -4800,10 +4800,11 @@ int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int reason,
4800 tss_selector, reason, has_error_code, 4800 tss_selector, reason, has_error_code,
4801 error_code); 4801 error_code);
4802 4802
4803 if (ret == X86EMUL_CONTINUE) 4803 if (ret)
4804 kvm_x86_ops->set_rflags(vcpu, vcpu->arch.emulate_ctxt.eflags); 4804 return EMULATE_FAIL;
4805 4805
4806 return (ret != X86EMUL_CONTINUE); 4806 kvm_x86_ops->set_rflags(vcpu, vcpu->arch.emulate_ctxt.eflags);
4807 return EMULATE_DONE;
4807} 4808}
4808EXPORT_SYMBOL_GPL(kvm_task_switch); 4809EXPORT_SYMBOL_GPL(kvm_task_switch);
4809 4810