diff options
author | Hanna Czenczek <hreitz@redhat.com> | 2025-07-24 14:59:28 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2025-08-01 08:33:04 -0400 |
commit | d63c388dadb7717f6391e1bb7f11728c0c1a3e36 (patch) | |
tree | f0a15552a26548538580eac3f93e3e9f16ab1727 /hw | |
parent | c1997099dc26d95eb9f2249f2894aabf4cf0bf8b (diff) | |
download | qemu-d63c388dadb7717f6391e1bb7f11728c0c1a3e36.zip qemu-d63c388dadb7717f6391e1bb7f11728c0c1a3e36.tar.gz qemu-d63c388dadb7717f6391e1bb7f11728c0c1a3e36.tar.bz2 |
vhost: Do not abort on log-stop error
Failing to stop logging in a vhost device is not exactly fatal. We can
log such an error, but there is no need to abort the whole qemu process
because of it.
Signed-off-by: Hanna Czenczek <hreitz@redhat.com>
Message-Id: <20250724125928.61045-3-hreitz@redhat.com>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Tested-by: Lei Yang <leiyang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/virtio/vhost.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c index 05ad5de..6557c58 100644 --- a/hw/virtio/vhost.c +++ b/hw/virtio/vhost.c @@ -1122,7 +1122,8 @@ static void vhost_log_global_stop(MemoryListener *listener) r = vhost_migration_log(listener, false); if (r < 0) { - abort(); + /* Not fatal, so report it, but take no further action */ + warn_report("vhost: Failed to stop logging"); } } |