mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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>
This commit is contained in:
committed by
Michael S. Tsirkin
parent
c1997099dc
commit
d63c388dad
+2
-1
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user