aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/kvm/svm.c3
-rw-r--r--drivers/kvm/vmx.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c
index 3d8ea7ac2ecc..6787f11738cf 100644
--- a/drivers/kvm/svm.c
+++ b/drivers/kvm/svm.c
@@ -1078,7 +1078,8 @@ static int halt_interception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
1078 1078
1079static int vmmcall_interception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) 1079static int vmmcall_interception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
1080{ 1080{
1081 vcpu->svm->vmcb->save.rip += 3; 1081 vcpu->svm->next_rip = vcpu->svm->vmcb->save.rip + 3;
1082 skip_emulated_instruction(vcpu);
1082 return kvm_hypercall(vcpu, kvm_run); 1083 return kvm_hypercall(vcpu, kvm_run);
1083} 1084}
1084 1085
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index fbbf9d6b299f..a721b60f7385 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -1658,7 +1658,7 @@ static int handle_halt(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
1658 1658
1659static int handle_vmcall(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) 1659static int handle_vmcall(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
1660{ 1660{
1661 vmcs_writel(GUEST_RIP, vmcs_readl(GUEST_RIP)+3); 1661 skip_emulated_instruction(vcpu);
1662 return kvm_hypercall(vcpu, kvm_run); 1662 return kvm_hypercall(vcpu, kvm_run);
1663} 1663}
1664 1664