diff options
author | Avi Kivity <avi@qumranet.com> | 2007-02-19 07:37:47 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-03-04 04:12:41 -0500 |
commit | 270fd9b96f5fcb7df15d3ca6166545d4aa0f3ee9 (patch) | |
tree | 06dcbab8d87b120ddf80ed4e184743fe542b4da8 /drivers/kvm/vmx.c | |
parent | 02e235bc8eebf8a6fef10d46479b3c18f3e9c4f2 (diff) |
KVM: Wire up hypercall handlers to a central arch-independent location
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/vmx.c')
-rw-r--r-- | drivers/kvm/vmx.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c index ca79e594ea6e..ff956a6302ec 100644 --- a/drivers/kvm/vmx.c +++ b/drivers/kvm/vmx.c | |||
@@ -1659,16 +1659,8 @@ static int handle_halt(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) | |||
1659 | 1659 | ||
1660 | static int handle_vmcall(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) | 1660 | static int handle_vmcall(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) |
1661 | { | 1661 | { |
1662 | kvm_run->exit_reason = KVM_EXIT_DEBUG; | ||
1663 | printk(KERN_DEBUG "got vmcall at RIP %08lx\n", vmcs_readl(GUEST_RIP)); | ||
1664 | printk(KERN_DEBUG "vmcall params: %08lx, %08lx, %08lx, %08lx\n", | ||
1665 | vcpu->regs[VCPU_REGS_RAX], | ||
1666 | vcpu->regs[VCPU_REGS_RCX], | ||
1667 | vcpu->regs[VCPU_REGS_RDX], | ||
1668 | vcpu->regs[VCPU_REGS_RBP]); | ||
1669 | vcpu->regs[VCPU_REGS_RAX] = 0; | ||
1670 | vmcs_writel(GUEST_RIP, vmcs_readl(GUEST_RIP)+3); | 1662 | vmcs_writel(GUEST_RIP, vmcs_readl(GUEST_RIP)+3); |
1671 | return 1; | 1663 | return kvm_hypercall(vcpu, kvm_run); |
1672 | } | 1664 | } |
1673 | 1665 | ||
1674 | /* | 1666 | /* |