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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 9e5a833f3392..8f45cc712dda 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -3941,6 +3941,7 @@ restart:
3941 3941
3942 shadow_mask = vcpu->arch.emulate_ctxt.interruptibility; 3942 shadow_mask = vcpu->arch.emulate_ctxt.interruptibility;
3943 kvm_x86_ops->set_interrupt_shadow(vcpu, shadow_mask); 3943 kvm_x86_ops->set_interrupt_shadow(vcpu, shadow_mask);
3944 kvm_rip_write(vcpu, vcpu->arch.emulate_ctxt.eip);
3944 3945
3945 if (vcpu->arch.pio.count) { 3946 if (vcpu->arch.pio.count) {
3946 if (!vcpu->arch.pio.in) 3947 if (!vcpu->arch.pio.in)
@@ -4945,6 +4946,7 @@ int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int reason,
4945 if (ret) 4946 if (ret)
4946 return EMULATE_FAIL; 4947 return EMULATE_FAIL;
4947 4948
4949 kvm_rip_write(vcpu, vcpu->arch.emulate_ctxt.eip);
4948 kvm_x86_ops->set_rflags(vcpu, vcpu->arch.emulate_ctxt.eflags); 4950 kvm_x86_ops->set_rflags(vcpu, vcpu->arch.emulate_ctxt.eflags);
4949 return EMULATE_DONE; 4951 return EMULATE_DONE;
4950} 4952}