Re: [PATCH] stop and show registers on error.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/21/2011 12:16 PM, Gleb Natapov wrote:
Signed-off-by: Gleb Natapov<gleb@xxxxxxxxxx>
diff --git a/qemu-kvm.c b/qemu-kvm.c
index 49cd683..2f3f683 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -644,8 +644,7 @@ int kvm_run(CPUState *env)
              break;
  #endif
  	case KVM_EXIT_INTERNAL_ERROR:
-            kvm_handle_internal_error(env, run);
-            r = 1;
+            r = kvm_handle_internal_error(env, run);
  	    break;
          default:
              if (kvm_arch_run(env)) {
@@ -1233,6 +1232,7 @@ int kvm_cpu_exec(CPUState *env)
      r = kvm_run(env);
      if (r<  0) {
          printf("kvm_run returned %d\n", r);
+        kvm_show_regs(env);
          vm_stop(0);
      }

'info registers'.

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux