diff options
author | Avi Kivity <avi@qumranet.com> | 2007-04-16 13:28:40 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-05-03 09:52:29 +0200 |
commit | 364b625b561b1dd74e6fa696949ae3de28999a66 (patch) | |
tree | 189b93ac4ff80c528311d3f6c1e49fadcd2a7468 /drivers/kvm | |
parent | KVM: Retry sleeping allocation if atomic allocation fails (diff) | |
download | linux-364b625b561b1dd74e6fa696949ae3de28999a66.tar.xz linux-364b625b561b1dd74e6fa696949ae3de28999a66.zip |
KVM: SVM: Report hardware exit reason to userspace instead of dmesg
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm')
-rw-r--r-- | drivers/kvm/svm.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c index c9b700d87801..61ed7352e506 100644 --- a/drivers/kvm/svm.c +++ b/drivers/kvm/svm.c @@ -1332,12 +1332,7 @@ static int handle_exit(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) if (exit_code >= ARRAY_SIZE(svm_exit_handlers) || svm_exit_handlers[exit_code] == 0) { kvm_run->exit_reason = KVM_EXIT_UNKNOWN; - printk(KERN_ERR "%s: 0x%x @ 0x%llx cr0 0x%lx rflags 0x%llx\n", - __FUNCTION__, - exit_code, - vcpu->svm->vmcb->save.rip, - vcpu->cr0, - vcpu->svm->vmcb->save.rflags); + kvm_run->hw.hardware_exit_reason = exit_code; return 0; } |