diff options
author | Dor Laor <dor.laor@qumranet.com> | 2007-02-19 11:25:43 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-05-03 03:52:22 -0400 |
commit | 510043da8582ad49d22a1e9a6b211e6ede10cd2e (patch) | |
tree | 0ded38e3d2fb77d02c59a6afce464d15d75e1cca /drivers/kvm/vmx.c | |
parent | 9b22bf578332d3e326c349bc8a8789af3d952435 (diff) |
KVM: Use the generic skip_emulated_instruction() in hypercall code
Instead of twiddling the rip registers directly, use the
skip_emulated_instruction() function to do that for us.
Signed-off-by: Dor Laor <dor.laor@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/vmx.c')
-rw-r--r-- | drivers/kvm/vmx.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | ||
1659 | static int handle_vmcall(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) | 1659 | static 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 | ||