From: Christian Schoenebeck <qemu_oss@crudebyte.com>
To: Stefan Hajnoczi <stefanha@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
virtio-comment@lists.oasis-open.org
Cc: "Afsa, Baptiste" <Baptiste.Afsa@harman.com>,
Eugenio Perez Martin <eperezma@redhat.com>,
"virtio-comment@lists.oasis-open.org"
<virtio-comment@lists.oasis-open.org>
Subject: Re: [virtio-comment] Re: VIRTIO_RING_F_INDIRECT_SIZE status
Date: Mon, 13 Mar 2023 12:48:11 +0100 [thread overview]
Message-ID: <2222004.mlUuFPspRX@silver> (raw)
In-Reply-To: <4500675.UJKzesTpFh@silver>
On Tuesday, March 7, 2023 1:40:24 PM CET Christian Schoenebeck wrote:
> On Monday, March 6, 2023 10:50:53 PM CET Michael S. Tsirkin wrote:
> > On Mon, Mar 06, 2023 at 03:46:01PM -0500, Stefan Hajnoczi wrote:
> > > On Mon, Mar 06, 2023 at 12:41:25PM -0500, Michael S. Tsirkin wrote:
> > > > On Mon, Mar 06, 2023 at 04:00:37PM +0100, Christian Schoenebeck wrote:
> [...]
> > > > > Anyhow, as this now gets broader scope, that also means the suggested flag
> > > > > VIRTIO_RING_F_INDIRECT_SIZE needs to be renamed. VIRTIO_RING_F_BUFFER_SIZE?
> > > > >
> > > > > Best regards,
> > > > > Christian Schoenebeck
> > > >
> > > >
> > > > Hmm that's unclear in that it might be in bytes too.
> > > > Given blk and scsi call these "segments" how about
> > > > VIRTIO_RING_F_SEG_MAX?
> > >
> > > The VIRTIO equivalent of a "segment" is an "element".
> >
> > Hmm true:
> > A buffer consists of zero or more device-readable physically-contiguous
> > elements followed by zero or more physically-contiguous
> > device-writable elements (each buffer has at least one element).
> >
> > However we then need to clean this up, since
> >
> > - At least in one place we say
> >
> > indirect elements to mean indirect descriptors.
> >
> > - we also say "queue elements" to mean "avail/desc/used"
> > - We also say "descriptor elements" - not 100% sure it's the same.
> >
> > so we need to clean this up a bit first and maybe add
> > text about indirect descriptors not counting as elements.
>
> With VIRTIO_RING_F_BUFFER_SIZE I actually had in mind that this limit was tied
> to per buffer/message (i.e. in contrast to a limit that would apply to the
> entire queue). But you are right, the name could mislead to the interpretation
> as if it was in bytes.
>
> How about VIRTIO_RING_F_MAX_BUF_ELEMENTS?
Ping?
Michael, another thing: what was the rationale for your suggestion to exclude
the indirect descriptor itself from this limit?
While I agree that it makes sense to broaden the scope to the total amount of
all descriptors per buffer (as I wasn't aware before that it is indeed
permitted to mix chained direct and indirect descriptors in a split queue
buffer, and given that QEMU's implementation for instance just allocates them
on the stack), however I currently don't see why it would make sense to
exclude the indirect descriptor itself, as it makes things more complicated?
Did you have something specific in mind for that exclusion?
Best regards,
Christian Schoenebeck
This publicly archived list offers a means to provide input to the
OASIS Virtual I/O Device (VIRTIO) TC.
In order to verify user consent to the Feedback License terms and
to minimize spam in the list archive, subscription is required
before posting.
Subscribe: virtio-comment-subscribe@lists.oasis-open.org
Unsubscribe: virtio-comment-unsubscribe@lists.oasis-open.org
List help: virtio-comment-help@lists.oasis-open.org
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/
next prev parent reply other threads:[~2023-03-13 11:48 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-13 7:45 [virtio-comment] [PATCH] Introduce VIRTIO_F_ISOLATE_INDIRECT_DESC feature Baptiste Afsa
2023-01-13 12:46 ` Michael S. Tsirkin
2023-01-17 15:19 ` Afsa, Baptiste
2023-01-17 18:27 ` Eugenio Perez Martin
2023-02-27 14:53 ` Afsa, Baptiste
2023-02-27 15:45 ` Stefan Hajnoczi
[not found] ` <2244126.gP0zCk8Q6A@silver>
2023-02-27 17:41 ` [virtio-comment] Re: VIRTIO_RING_F_INDIRECT_SIZE status Michael S. Tsirkin
[not found] ` <2494182.5W6NY9sLyD@silver>
2023-02-28 12:05 ` Michael S. Tsirkin
[not found] ` <6380471.4BWXO1n1mU@silver>
[not found] ` <Y/9Z5fphn34/HSKs@fedora>
[not found] ` <2458440.T3bEdP9vpG@silver>
2023-03-06 16:27 ` Stefan Hajnoczi
[not found] ` <20230301095017-mutt-send-email-mst@kernel.org>
[not found] ` <2812377.Px9Efocobp@silver>
2023-03-06 17:41 ` Michael S. Tsirkin
2023-03-06 20:46 ` Stefan Hajnoczi
2023-03-06 21:50 ` Michael S. Tsirkin
2023-03-07 12:40 ` Christian Schoenebeck
2023-03-13 11:48 ` Christian Schoenebeck [this message]
2023-03-13 13:06 ` Michael S. Tsirkin
2023-03-13 13:48 ` Christian Schoenebeck
2023-03-13 13:54 ` Michael S. Tsirkin
2023-03-07 13:26 ` Stefan Hajnoczi
2023-03-07 16:47 ` Michael S. Tsirkin
2023-03-07 19:35 ` Stefan Hajnoczi
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=2222004.mlUuFPspRX@silver \
--to=qemu_oss@crudebyte.com \
--cc=Baptiste.Afsa@harman.com \
--cc=eperezma@redhat.com \
--cc=mst@redhat.com \
--cc=stefanha@redhat.com \
--cc=virtio-comment@lists.oasis-open.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 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.