aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-04-16 07:28:40 -0400
committerAvi Kivity <avi@qumranet.com>2007-05-03 03:52:29 -0400
commit364b625b561b1dd74e6fa696949ae3de28999a66 (patch)
tree189b93ac4ff80c528311d3f6c1e49fadcd2a7468
parent8c4385024d31cb909ad84a2cafa5c83a4c5fab61 (diff)
KVM: SVM: Report hardware exit reason to userspace instead of dmesg
Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r--drivers/kvm/svm.c7
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)
1332 if (exit_code >= ARRAY_SIZE(svm_exit_handlers) 1332 if (exit_code >= ARRAY_SIZE(svm_exit_handlers)
1333 || svm_exit_handlers[exit_code] == 0) { 1333 || svm_exit_handlers[exit_code] == 0) {
1334 kvm_run->exit_reason = KVM_EXIT_UNKNOWN; 1334 kvm_run->exit_reason = KVM_EXIT_UNKNOWN;
1335 printk(KERN_ERR "%s: 0x%x @ 0x%llx cr0 0x%lx rflags 0x%llx\n", 1335 kvm_run->hw.hardware_exit_reason = exit_code;
1336 __FUNCTION__,
1337 exit_code,
1338 vcpu->svm->vmcb->save.rip,
1339 vcpu->cr0,
1340 vcpu->svm->vmcb->save.rflags);
1341 return 0; 1336 return 0;
1342 } 1337 }
1343 1338