From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 v3 0/4] drivers/vhost/blk: hold requests failed with ENOSPC until QEMU resubmits them
Date: Tue, 01 Dec 2026 10:19:07 +0100 [thread overview]
Message-ID: <179611674785.3101.9394659242040322241.b4-review@b4> (raw)
In-Reply-To: <20261201085020.1884923-1-alexander.ivanov@virtuozzo.com>
I won't apply this version, please send v4 with the changes below.
The code is fine; only the uapi comments and one sentence change.
On Tue, 1 Dec 2026 09:50:16 +0100, Alexander Ivanov wrote:
> - patch 4: say in the uapi which VHOST_BLK_RESUBMIT errors fail the
> rest of the entries and which concern only the failed one
My v2 reply never went out, sorry: items 1, 2, 3 and 5 are from it.
1. Patch 3: the VHOST_BLK_GET_HELD_REQS comment: after a failing
VHOST_BLK_SET_BACKEND the list may also hold requests held during
it, so QEMU reads it again.
2. Patch 3 message: "Until then its head stays taken" - say "while
the backend is set".
3. Patch 4: the VHOST_BLK_RESUBMIT comment: nr when the call fails
before the first entry (-EPERM, a fault on the header, reserved
not 0). Set it to 0, or say these errors leave it unchanged.
4. Patch 4: the same comment: an -EFAULT on reading an entry fails
the rest, like -ENODEV and -EINTR, not only that entry.
5. Patch 4: the same comment: say that the guest request of a
skipped entry is never completed.
The v3 copy of the held list outside held_mutex is fine: blk->held
changes only under dev.mutex, which the ioctl holds, and new entries
go past nr_held.
Separate patches, not needed for this series. I created a task:
1. vhost-blk: vhost_blk_req_cleanup() frees a kmalloc'ed req->bio
array but leaves the pointer set, and nothing resets it for the
next request on that head. If that request needs a bounce buffer
and its kvmalloc or the copy into it fails, err_req frees the old
array again. A guest can steer it, and the -ENOMEM retry of
RESUBMIT takes the same path.
https://virtuozzo.atlassian.net/browse/VSTOR-158259
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
prev parent reply other threads:[~2026-12-01 9:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 8:50 Alexander Ivanov
2026-12-01 8:50 ` [Devel] [PATCH hci-8.2 v3 1/4] drivers/vhost: split the descriptor chain walk out of vhost_get_vq_desc() Alexander Ivanov
2026-12-01 8:50 ` [Devel] [PATCH hci-8.2 v3 2/4] drivers/vhost/blk: split request parsing out of the guest kick handler Alexander Ivanov
2026-12-01 8:50 ` [Devel] [PATCH hci-8.2 v3 3/4] drivers/vhost/blk: hold requests failed with ENOSPC Alexander Ivanov
2026-12-01 8:56 ` no-reply
2026-12-01 9:19 ` Konstantin Khorenko
2026-12-01 11:25 ` Alexander Ivanov
2026-12-01 8:50 ` [Devel] [PATCH hci-8.2 v3 4/4] drivers/vhost/blk: add the VHOST_BLK_RESUBMIT ioctl Alexander Ivanov
2026-12-01 9:01 ` no-reply
2026-12-01 11:14 ` Alexander Ivanov
2026-12-01 9:19 ` Konstantin Khorenko
2026-12-01 11:16 ` Alexander Ivanov
2026-12-01 9:19 ` Konstantin Khorenko [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=179611674785.3101.9394659242040322241.b4-review@b4 \
--to=khorenko@virtuozzo.com \
--cc=alexander.ivanov@virtuozzo.com \
--cc=devel@openvz.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox