From: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
To: no-reply@sashiko.virtuozzo.com, andrey.zhadchenko@virtuozzo.com
Cc: andrey.drobyshev@virtuozzo.com, svt-core@virtuozzo.com
Subject: Re: [PATCH hci-8.2 v3 1/5] linux-headers: add the vhost-blk held request ioctls #VSTOR-152175
Date: Tue, 1 Dec 2026 10:03:11 +0100 [thread overview]
Message-ID: <c16e0281-7648-4b83-802c-089eebbf1e13@virtuozzo.com> (raw)
In-Reply-To: <010701a22f178185-4fc78430-d11a-406e-8b7e-3b88d0124193-000000@eu-central-1.amazonses.com>
>> +/*
>> + * Resubmit requests by vq and head, as if they were just taken from the avail
>> + * ring. Only heads read with VHOST_BLK_GET_HELD_REQS after the last stop may be
>> + * passed: the kernel does not track them, and a head passed again after its
>> + * request completed, or still owned by the guest, is completed twice. A head
>> + * still in flight fails with -EBUSY. error and type are ignored, reserved
>> + * must be 0. On error, nr is set to the number of requests resubmitted.
>> + */
>> +#define VHOST_BLK_RESUBMIT _IOWR(VHOST_VIRTIO, 0xFA, \
>> + struct vhost_blk_held_reqs)
> [Severity: Low]
> This isn't a bug, but is "reserved must be 0" clear enough here and in the VHOST_BLK_GET_HELD_REQS comment? Both struct vhost_blk_held_reqs and struct vhost_blk_held_req have a field named reserved. The comments do not say whether only the outer field, or also the reserved field of every element in reqs[], must be zero on input.
>
> The VHOST_BLK_RESUBMIT comment also says error and type are ignored, but never says that vq and head are the fields read from each element. It does not say that nr is the number of entries to resubmit, whereas for GET it is the capacity of reqs[]. Since this header is the only ABI specification, could these be spelled out?
Not changing this. This header is a copy of the kernel uapi one, so the
wording is not for this series to fix. The comment already names vq and
head as the fields read, and zeroing every reserved field is the usual
uapi convention, which QEMU follows.
next prev parent reply other threads:[~2026-12-01 9:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 9:42 [PATCH hci-8.2 v3 0/5] vhost-blk: support the werror/rerror policies Alexander Ivanov
2026-11-30 9:42 ` [PATCH hci-8.2 v3 1/5] linux-headers: add the vhost-blk held request ioctls #VSTOR-152175 Alexander Ivanov
2026-12-01 0:53 ` no-reply
2026-12-01 9:03 ` Alexander Ivanov [this message]
2026-11-30 9:42 ` [PATCH hci-8.2 v3 2/5] vhost-blk: add the werror and rerror properties #VSTOR-152175 Alexander Ivanov
2026-12-01 0:54 ` no-reply
2026-11-30 9:42 ` [PATCH hci-8.2 v3 3/5] vhost-blk: stop vhost on every VM stop #VSTOR-152175 Alexander Ivanov
2026-12-01 0:58 ` no-reply
2026-12-01 9:07 ` Alexander Ivanov
2026-11-30 9:42 ` [PATCH hci-8.2 v3 4/5] vhost-blk: pause the VM on a request failed with ENOSPC #VSTOR-152175 Alexander Ivanov
2026-12-01 1:07 ` no-reply
2026-12-01 9:14 ` Alexander Ivanov
2026-11-30 9:42 ` [PATCH hci-8.2 v3 5/5] vhost-blk: migrate the held requests #VSTOR-152175 Alexander Ivanov
2026-12-01 1:10 ` no-reply
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=c16e0281-7648-4b83-802c-089eebbf1e13@virtuozzo.com \
--to=alexander.ivanov@virtuozzo.com \
--cc=andrey.drobyshev@virtuozzo.com \
--cc=andrey.zhadchenko@virtuozzo.com \
--cc=no-reply@sashiko.virtuozzo.com \
--cc=svt-core@virtuozzo.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.