[Devel] [PATCH hci-8.2 v4 0/4] drivers/vhost/blk: hold requests failed with ENOSPC until QEMU resubmits them
Konstantin Khorenko
khorenko at virtuozzo.com
Tue Dec 1 18:32:46 MSK 2026
Applying with these fixes on my side:
- patch 3 message: "as QEMU still has to resubmit the saved heads" ->
"so that the list read after it is complete wherever the call
failed"; QEMU already has the saved heads
- patch 4 message: a fault on guest memory can also come back as
-EINVAL, from an indirect table (get_indirect()) or the bounce buffer
copy; the sentence names both
On Tue, 1 Dec 2026 13:49:27 +0100, Alexander Ivanov wrote:
> - patch 3: keep the held list across a failing VHOST_BLK_SET_BACKEND,
> adding the requests held by the vqs it had started, so that the saved
> heads are not lost (item 2 of the v1 review, missed in v2 and v3)
Not missed: you declined v1 item 2 with a good reason, and my v2 reply
that withdrew it never went out, sorry. v4 gets there in a safe way:
the old entries are copied before any vq goes live.
A question for the QEMU series: after a failing SET_BACKEND the list
now holds the N heads read before plus the M held during the call. On
the same host QEMU has to replace its copy with it, not append, or the
N heads are resubmitted twice. hci-dev QEMU also calls
VHOST_RESET_OWNER right after a failing SET_BACKEND, which empties the
list. Does QEMU v4 read it before that?
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list