]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: better detection of crashed domains
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 6 Jun 2012 14:43:41 +0000 (16:43 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 7 Jun 2012 06:43:03 +0000 (08:43 +0200)
commitbda2f17d7e673f4dd7fc1a03389ca7d8f4e1646e
treea3cfcb0902f288da677f9f9a5a965ef64ac67131
parentb2ecfe9795526bbde6d302916e39a13b5e1283a0
qemu: better detection of crashed domains

When libvirtd is started and there is an unusable/not-connectable
leftover from earlier started machine, it's more reasonable to say
that the machine "crashed" if we know it was started with
"-no-shutdown".
This patch fixes that and also changes the other result (when machine
was started without "-no-shutdown") to "unknown", because the previous
"failed" reason means (according to include/libvirt/libvirt.h.in:174),
that the machine failed to start.
src/qemu/qemu_process.c