Skip to content

Commit

Permalink
KVM: SVM: Report hardware exit reason to userspace instead of dmesg
Browse files Browse the repository at this point in the history
Signed-off-by: Avi Kivity <avi@qumranet.com>
  • Loading branch information
Avi Kivity committed May 3, 2007
1 parent 8c43850 commit 364b625
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 364b625

Please sign in to comment.