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/svm.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/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) | |||
1078 | 1078 | ||
1079 | static int vmmcall_interception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) | 1079 | static int vmmcall_interception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) |
1080 | { | 1080 | { |
1081 | printk(KERN_DEBUG "got vmmcall at RIP %08llx\n", | ||
1082 | vcpu->svm->vmcb->save.rip); | ||
1083 | printk(KERN_DEBUG "vmmcall params: %08llx, %08lx, %08lx, %08lx\n", | ||
1084 | vcpu->svm->vmcb->save.rax, | ||
1085 | vcpu->regs[VCPU_REGS_RCX], | ||
1086 | vcpu->regs[VCPU_REGS_RDX], | ||
1087 | vcpu->regs[VCPU_REGS_RBP]); | ||
1088 | vcpu->svm->vmcb->save.rax = 0; | ||
1089 | vcpu->svm->vmcb->save.rip += 3; | 1081 | vcpu->svm->vmcb->save.rip += 3; |
1090 | return 1; | 1082 | return kvm_hypercall(vcpu, kvm_run); |
1091 | } | 1083 | } |
1092 | 1084 | ||
1093 | static int invalid_op_interception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) | 1085 | static int invalid_op_interception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) |