]> git.ipfire.org Git - thirdparty/qemu.git/commit
vhost: Do not abort on log-start error
authorHanna Czenczek <hreitz@redhat.com>
Thu, 24 Jul 2025 12:59:27 +0000 (14:59 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 1 Aug 2025 12:33:04 +0000 (08:33 -0400)
commitc1997099dc26d95eb9f2249f2894aabf4cf0bf8b
tree196db90ca2c8ffa07e8881edacc44dd53e27305e
parent6fcf5ebafad65adc19a616260ca7dc90005785d1
vhost: Do not abort on log-start error

Commit 3688fec8923 ("memory: Add Error** argument to .log_global_start()
handler") enabled vhost_log_global_start() to return a proper error, but
did not change it to do so; instead, it still aborts the whole process
on error.

This crash can be reproduced by e.g. killing a virtiofsd daemon before
initiating migration.  In such a case, qemu should not crash, but just
make the attempted migration fail.

Buglink: https://issues.redhat.com/browse/RHEL-94534
Reported-by: Tingting Mao <timao@redhat.com>
Signed-off-by: Hanna Czenczek <hreitz@redhat.com>
Message-Id: <20250724125928.61045-2-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>
hw/virtio/vhost.c