]> git.ipfire.org Git - thirdparty/qemu.git/commit
vhost: add a helper for force stopping a device
authorDaniil Tatianin <d-tatianin@yandex-team.ru>
Mon, 9 Jun 2025 21:25:46 +0000 (00:25 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 14 Jul 2025 13:16:40 +0000 (09:16 -0400)
commit2f527fff460a2c67fd37298dbd7fe42fffdb738b
tree35b02b88b4762b1de4de82799a6315aa7fe9ac7f
parent260f826cf8f2fe54f3cf4de541d761cf616e15ea
vhost: add a helper for force stopping a device

This adds an ability to skip GET_VRING_BASE during device stop entirely,
and thus the expensive drain operation that this call entails as well,
which may be useful during a non-graceful shutdown in case the guest
operating system hangs or refuses to react to a previously requested
ACPI shutdown for whatever reason.

Signed-off-by: Daniil Tatianin <d-tatianin@yandex-team.ru>
Message-Id: <20250609212547.2859224-3-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>
hw/virtio/vhost.c
include/hw/virtio/vhost.h