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 v3 4/4] drivers/vhost/blk: add the VHOST_BLK_RESUBMIT ioctl
Date: Tue, 01 Dec 2026 10:19:07 +0100	[thread overview]
Message-ID: <179611674788.3101.11941350163735705244.b4-review@b4> (raw)
In-Reply-To: <20261201085020.1884923-5-alexander.ivanov@virtuozzo.com>

Items 3, 4 and 5 of the cover letter reply.

On Tue, 1 Dec 2026 09:50:20 +0100, Alexander Ivanov wrote:
> + * error and type are ignored, reserved must be 0. On error, nr is set to the
> + * index of the entry that failed; the entries before it were resubmitted.
> + * On -ENOMEM pass the same entry again; -ENODEV and -EINTR fail the rest as
> + * well. Any other error concerns only that entry: the ones after it may still
> + * be passed from nr + 1. Fails with -ENODEV until the backend is set.

- -EPERM, -EFAULT on the header and -EINVAL for reserved fail before
  the loop and leave nr as passed in. By this rule QEMU goes on from
  nr + 1, past the end, and resubmits nothing.
- -EFAULT from copy_from_user() of reqs[i] is not about that entry:
  it was never read. Put it with -ENODEV and -EINTR.
- Say that a skipped entry's guest request is never completed, so
  QEMU knows what skipping costs.

-ENODEV is named twice; one mention is enough.

-- 
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  9:20 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  8:50 [Devel] [PATCH hci-8.2 v3 0/4] drivers/vhost/blk: hold requests failed with ENOSPC until QEMU resubmits them 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 [this message]
2026-12-01 11:16     ` Alexander Ivanov
2026-12-01  9:19 ` [Devel] [PATCH hci-8.2 v3 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=179611674788.3101.11941350163735705244.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