]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Distinguish between domain shutdown and crash
authorJiri Denemark <jdenemar@redhat.com>
Thu, 9 Dec 2010 10:18:32 +0000 (11:18 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 9 Dec 2010 10:50:48 +0000 (11:50 +0100)
commitc778fe967808eb2426ed4851db3ec49a0cdc76ca
tree4da74f192816637f018b7f2f49dc89bd1a67a09a
parentaefaeb3d483da41ee0e7601ec798b992d0297ed4
qemu: Distinguish between domain shutdown and crash

When we get an EOF event on monitor connection, it may be a result of
either crash or graceful shutdown. QEMU which supports async events
(i.e., we are talking to it using JSON monitor) emits SHUTDOWN event on
graceful shutdown. In case we don't get this event by the time monitor
connection is closed, we assume the associated domain crashed.
src/qemu/qemu_driver.c