]> err.no Git - linux-2.6/commitdiff
KVM: SVM: Report hardware exit reason to userspace instead of dmesg
authorAvi Kivity <avi@qumranet.com>
Mon, 16 Apr 2007 11:28:40 +0000 (14:28 +0300)
committerAvi Kivity <avi@qumranet.com>
Thu, 3 May 2007 07:52:29 +0000 (10:52 +0300)
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/svm.c

index c9b700d878016217d917bdd1919d7e70bedb5e25..61ed7352e506e089e682913dab4accb17846931f 100644 (file)
@@ -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;
        }