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

Re: [libvirt] [PATCH] libvirt supports Guest Panicked



On 05/27/2013 10:41 AM, Chen Fan wrote:
From: chenfan <chen fan fnst cn fujitsu com>
@@ -3185,6 +3194,9 @@ int qemuMonitorVMStatusToPausedReason(const char *status)
      case QEMU_MONITOR_VM_STATUS_WATCHDOG:
          return VIR_DOMAIN_PAUSED_WATCHDOG;

+    case QEMU_MONITOR_VM_STATUS_GUEST_PANICKED:
+        return VIR_DOMAIN_PAUSED_GUEST_PANICKED;
+
      /* unreachable from this point on */
      case QEMU_MONITOR_VM_STATUS_LAST:
          ;
I just have crashed the guest while libvirtd wasn't running,
after a restart, virsh domstate --reason always reports
paused (guest panicked) while I would expect crashed (guest panicked).
Either QEMU is reporting a bogus state or the state computation
is flawed somewhere...

--

Mit freundlichen Grüßen/Kind Regards
   Viktor Mihajlovski

IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martina Köderitz
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294


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