From: Mohammed Gamal Subject: [PATCH] Show registers and exit on unhandled errors Date: Mon, 21 Sep 2009 13:18:01 +0200 Message-ID: <1253531881-3847-1-git-send-email-m.gamal005@gmail.com> Cc: mtosatti@redhat.com, kvm@vger.kernel.org, Mohammed Gamal To: avi@redhat.com Return-path: Received: from mail-fx0-f216.google.com ([209.85.220.216]:65227 "EHLO mail-fx0-f216.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753052AbZIULSD (ORCPT ); Mon, 21 Sep 2009 07:18:03 -0400 Received: by fxm12 with SMTP id 12so2092295fxm.18 for ; Mon, 21 Sep 2009 04:18:06 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: Signed-off-by: Mohammed Gamal --- qemu-kvm.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index 0afdb56..c22c28a 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -1015,6 +1015,8 @@ int kvm_run(kvm_vcpu_context_t vcpu, void *env) switch (run->exit_reason) { case KVM_EXIT_UNKNOWN: r = handle_unhandled(run->hw.hardware_exit_reason); + kvm_show_regs(vcpu); + abort(); break; case KVM_EXIT_FAIL_ENTRY: r = handle_unhandled(run->fail_entry.hardware_entry_failure_reason); -- 1.6.0.4