From: John Levon <john.levon@nutanix.com>
To: Yuho Choi <oss.patchbox@gmail.com>
Cc: qemu-devel@nongnu.org, thanos.makatos@nutanix.com,
clg@redhat.com, qemu-stable@nongnu.org
Subject: Re: [PATCH v1] vfio-user: propagate DMA map/unmap request errors
Date: Tue, 15 Sep 2026 12:13:00 +0100 [thread overview]
Message-ID: <aqkoPCsMpC148Gk5@lent> (raw)
In-Reply-To: <20260910213526.1472467-1-dbgh9129@gmail.com>
On Thu, Sep 10, 2026 at 05:35:26PM -0400, Yuho Choi wrote:
> + error_prepend(&local_err, "vfio-user DMA mapping transaction failed: ");
> + if (!bcontainer->initialized) {
> + if (!bcontainer->error) {
> + error_propagate(&bcontainer->error, local_err);
> + } else {
> + error_free(local_err);
> + }
> + } else {
> + error_report_err(local_err);
> + hw_error("vfio-user: DMA mapping failed, unable to continue");
Are we sure we want qemu to abort() rather than just exit in the case the
vfio-user server returns an error?
> @@ -426,7 +450,15 @@ err:
> */
> vfio_user_set_error(msg->hdr, EINVAL);
> msg->complete = true;
> - qemu_cond_signal(&msg->cv);
> + if (msg->type == VFIO_MSG_NOWAIT) {
> + vfio_user_record_nowait_reply_error(proxy, msg);
> + if (proxy->last_nowait == msg) {
> + proxy->last_nowait = NULL;
> + }
I'm not quite getting this change, why are you resetting last_nowait here? And
why as part of this change?
I think at least it's worth a comment.
thanks
john
prev parent reply other threads:[~2026-09-15 11:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 21:35 [PATCH v1] vfio-user: propagate DMA map/unmap request errors Yuho Choi
2026-09-15 11:13 ` John Levon [this message]
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=aqkoPCsMpC148Gk5@lent \
--to=john.levon@nutanix.com \
--cc=clg@redhat.com \
--cc=oss.patchbox@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@nongnu.org \
--cc=thanos.makatos@nutanix.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