]> git.ipfire.org Git - thirdparty/qemu.git/commit
softmmu/runstate: add a way to detect force shutdowns
authorDaniil Tatianin <d-tatianin@yandex-team.ru>
Mon, 9 Jun 2025 21:25:45 +0000 (00:25 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 14 Jul 2025 13:16:40 +0000 (09:16 -0400)
commit260f826cf8f2fe54f3cf4de541d761cf616e15ea
treee416379aa52267bf5bc7ac48a69e23e41725c913
parent9f749129e2629b19f424df106c92c5a5647e396c
softmmu/runstate: add a way to detect force shutdowns

This can be useful for devices that might take too long to shut down
gracefully, but may have a way to shutdown quickly otherwise if needed
or explicitly requested by a force shutdown.

For now we only consider SIGTERM or the QMP quit() command a force
shutdown, since those bypass the guest entirely and are equivalent to
pulling the power plug.

Signed-off-by: Daniil Tatianin <d-tatianin@yandex-team.ru>
Message-Id: <20250609212547.2859224-2-d-tatianin@yandex-team.ru>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/system/runstate.h
system/runstate.c