OpenVZ / Virtuozzo kernel development (devel@openvz.org)
 help / color / mirror / Atom feed
From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 v4 0/4] drivers/vhost/blk: hold requests failed with ENOSPC until QEMU resubmits them
Date: Tue, 01 Dec 2026 16:32:46 +0100	[thread overview]
Message-ID: <179613916646.1933540.10728442412416503019.b4-review@b4> (raw)
In-Reply-To: <20261201124931.1969095-1-alexander.ivanov@virtuozzo.com>

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

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

  parent reply	other threads:[~2026-12-01 15:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 12:49 Alexander Ivanov
2026-12-01 12:49 ` [Devel] [PATCH hci-8.2 v4 1/4] drivers/vhost: split the descriptor chain walk out of vhost_get_vq_desc() Alexander Ivanov
2026-12-01 12:49 ` [Devel] [PATCH hci-8.2 v4 2/4] drivers/vhost/blk: split request parsing out of the guest kick handler Alexander Ivanov
2026-12-01 12:49 ` [Devel] [PATCH hci-8.2 v4 3/4] drivers/vhost/blk: hold requests failed with ENOSPC Alexander Ivanov
2026-12-01 12:49 ` [Devel] [PATCH hci-8.2 v4 4/4] drivers/vhost/blk: add the VHOST_BLK_RESUBMIT ioctl Alexander Ivanov
2026-12-01 12:57   ` no-reply
2026-12-01 15:32 ` Konstantin Khorenko [this message]
2026-12-01 15:32 ` [Devel] [PATCH hci-8.2 v4 0/4] drivers/vhost/blk: hold requests failed with ENOSPC until QEMU resubmits them Konstantin Khorenko

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=179613916646.1933540.10728442412416503019.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