diff options
author | Avi Kivity <avi@qumranet.com> | 2007-02-19 14:37:47 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-03-04 11:12:41 +0200 |
commit | 270fd9b96f5fcb7df15d3ca6166545d4aa0f3ee9 (patch) | |
tree | 06dcbab8d87b120ddf80ed4e184743fe542b4da8 /drivers/kvm/svm.c | |
parent | 02e235bc8eebf8a6fef10d46479b3c18f3e9c4f2 (diff) | |
download | linux-270fd9b96f5fcb7df15d3ca6166545d4aa0f3ee9.tar.gz linux-270fd9b96f5fcb7df15d3ca6166545d4aa0f3ee9.tar.bz2 linux-270fd9b96f5fcb7df15d3ca6166545d4aa0f3ee9.zip |
KVM: Wire up hypercall handlers to a central arch-independent location
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/svm.c')
-rw-r--r-- | drivers/kvm/svm.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c index aaa6742089e5..711ea42370a8 100644 --- a/drivers/kvm/svm.c +++ b/drivers/kvm/svm.c @@ -1078,16 +1078,8 @@ static int halt_interception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) static int vmmcall_interception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) { - printk(KERN_DEBUG "got vmmcall at RIP %08llx\n", - vcpu->svm->vmcb->save.rip); - printk(KERN_DEBUG "vmmcall params: %08llx, %08lx, %08lx, %08lx\n", - vcpu->svm->vmcb->save.rax, - vcpu->regs[VCPU_REGS_RCX], - vcpu->regs[VCPU_REGS_RDX], - vcpu->regs[VCPU_REGS_RBP]); - vcpu->svm->vmcb->save.rax = 0; vcpu->svm->vmcb->save.rip += 3; - return 1; + return kvm_hypercall(vcpu, kvm_run); } static int invalid_op_interception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) |