]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: use a wrong name for guest panic status
authorLuyao Huang <lhuang@redhat.com>
Mon, 5 Jan 2015 09:09:33 +0000 (17:09 +0800)
committerEric Blake <eblake@redhat.com>
Mon, 5 Jan 2015 23:55:35 +0000 (16:55 -0700)
https://bugzilla.redhat.com/show_bug.cgi?id=1178652

We will get a warning when we have a guest in paused
status (caused by kernel panic) and restart libvirtd,
warning message like this:

Qemu reported unknown VM status: 'guest-panicked'

and this seems because we set a wrong status name in
qemu_monitor.c, and from qemu qapi-schema.json file
we know this status should named 'guest-panicked'.

Signed-off-by: Luyao Huang <lhuang@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_monitor.c

index 100bbd0175cfa6685ac7fa76a9c495764451e8f9..57a13abd170ac8767371ecdb1e5b1ddc66a14cee 100644 (file)
@@ -127,7 +127,7 @@ VIR_ENUM_IMPL(qemuMonitorVMStatus,
               QEMU_MONITOR_VM_STATUS_LAST,
               "debug", "inmigrate", "internal-error", "io-error", "paused",
               "postmigrate", "prelaunch", "finish-migrate", "restore-vm",
-              "running", "save-vm", "shutdown", "watchdog", "guest-panic")
+              "running", "save-vm", "shutdown", "watchdog", "guest-panicked")
 
 typedef enum {
     QEMU_MONITOR_BLOCK_IO_STATUS_OK,