From: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
To: Hanna Czenczek <hreitz@redhat.com>
Cc: qemu-devel@nongnu.org, Stefano Garzarella <sgarzare@redhat.com>,
"Michael S . Tsirkin" <mst@redhat.com>
Subject: Re: [PATCH 2/2] vhost: Do not abort on log-stop error
Date: Thu, 24 Jul 2025 16:17:14 +0300 [thread overview]
Message-ID: <CAAjaMXb7SuHrCh_oCAoVKmfo8eNXoaR=8ay5sDAMrS4Qdtxk6w@mail.gmail.com> (raw)
In-Reply-To: <20250724125928.61045-3-hreitz@redhat.com>
On Thu, Jul 24, 2025 at 4:00 PM Hanna Czenczek <hreitz@redhat.com> wrote:
>
> 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>
> ---
> hw/virtio/vhost.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c
> index 05ad5de629..6557c58d12 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");
> }
> }
>
> --
> 2.50.1
>
>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
--
Manos Pitsidianakis
Emulation and Virtualization Engineer at Linaro Ltd
next prev parent reply other threads:[~2025-07-24 13:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-24 12:59 [PATCH 0/2] Do not abort on log-start/stop errors Hanna Czenczek
2025-07-24 12:59 ` [PATCH 1/2] vhost: Do not abort on log-start error Hanna Czenczek
2025-07-24 13:12 ` Manos Pitsidianakis
2025-07-24 14:24 ` Stefano Garzarella
2025-07-24 14:58 ` Hanna Czenczek
2025-07-24 12:59 ` [PATCH 2/2] vhost: Do not abort on log-stop error Hanna Czenczek
2025-07-24 13:17 ` Manos Pitsidianakis [this message]
2025-07-24 14:26 ` Stefano Garzarella
2025-07-25 9:30 ` [PATCH 0/2] Do not abort on log-start/stop errors Lei Yang
2025-08-02 6:31 ` Michael Tokarev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAAjaMXb7SuHrCh_oCAoVKmfo8eNXoaR=8ay5sDAMrS4Qdtxk6w@mail.gmail.com' \
--to=manos.pitsidianakis@linaro.org \
--cc=hreitz@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=sgarzare@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).