From: Bin Guo <guobin@linux.alibaba.com>
To: philmd@mailo.com
Cc: armbru@redhat.com, guobin@linux.alibaba.com, mst@redhat.com,
qemu-devel@nongnu.org
Subject: Re: [PATCH] hw/virtio: propagate vhost_virtqueue_mask() errors from start path
Date: Fri, 5 Jun 2026 14:30:40 +0800 [thread overview]
Message-ID: <20260605063040.65984-1-guobin@linux.alibaba.com> (raw)
In-Reply-To: <5ea46e73-1d5e-430f-b2df-62d6807a60f4@mailo.com>
On Wed, 4 Jun 2026 14:57:41 +0200, Philippe Mathieu-Daudé wrote:
> IIUC the intention behind this TODO is to convert to a function
> returning a boolean and taking Error** as last argument, replacing
> this call with error_setg_errno().
> See in 'Error reporting system loosely patterned after Glib's GError'
> rules in 'qapi/error.h'.
Thanks for the suggestion. I considered changing the signature to
bool + Error **errp, but decided to keep the current int +
error_report() approach. vhost_set_vring_call is unlikely to fail
in practice, so this is defensive programming rather than a regular
error path. Changing the signature would propagate to ~15 call sites
across multiple files for what is a rare edge case, which seems
disproportionate. The patch already resolves the TODO and confines
the change to the start path.
next prev parent reply other threads:[~2026-06-05 6:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-04 12:44 [PATCH] hw/virtio: propagate vhost_virtqueue_mask() errors from start path Bin Guo
2026-06-04 12:57 ` Philippe Mathieu-Daudé
2026-06-05 6:30 ` Bin Guo [this message]
2026-07-04 9:10 ` Michael S. Tsirkin
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=20260605063040.65984-1-guobin@linux.alibaba.com \
--to=guobin@linux.alibaba.com \
--cc=armbru@redhat.com \
--cc=mst@redhat.com \
--cc=philmd@mailo.com \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.