]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Introduce shutdown reason for paused state
authorJiri Denemark <jdenemar@redhat.com>
Thu, 15 Sep 2011 13:07:51 +0000 (15:07 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 16 Sep 2011 15:25:55 +0000 (17:25 +0200)
commitd2d67763420774929ea4e769487464aff4e87d04
treefebdb70334ded4d6fcdd72df550ffbed5825ddd8
parent96fc4784177ecb70357518fa863442455e45ad0e
qemu: Introduce shutdown reason for paused state

Qemu sends STOP event as part of the shutdown process. Detect such STOP
event and consider shutdown to be reason of emitting such event. That's
the best we can do until qemu provides us the reason directly in STOP
event. This allows us to report shutdown reason for paused state so that
apps can detect domains that failed to finish the shutdown process
(e.g., because qemu is buggy and doesn't exit on SIGTERM or it is
blocked in flushing disk buffers).
include/libvirt/libvirt.h.in
src/conf/domain_conf.c
src/libvirt_private.syms
src/qemu/qemu_process.c
tools/virsh.c