Discussion of the VIRTIO specification
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Halil Pasic <pasic@linux.ibm.com>
Cc: Laura Loghin <lauralg@amazon.com>,
	virtio-comment@lists.oasis-open.org,
	Cornelia Huck <cohuck@redhat.com>,
	Stefano Garzarella <sgarzare@redhat.com>
Subject: Re: [virtio-comment] [PATCH v4] virtio-vsock: add max payload size config field
Date: Thu, 16 Jun 2022 12:40:27 -0400	[thread overview]
Message-ID: <20220616123431-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <20220614135734.534dbc0b.pasic@linux.ibm.com>

On Tue, Jun 14, 2022 at 01:57:34PM +0200, Halil Pasic wrote:
> On Mon, 13 Jun 2022 13:40:38 +0300
> Laura Loghin <lauralg@amazon.com> wrote:
> 
> > @@ -57,6 +62,25 @@ \subsection{Device configuration layout}\label{sec:Device Types / Socket Device
> >  \hline
> >  \end{tabular}
> >  
> > +The following driver-read-only field, \field{data_max_size} only exists if
> > +VIRTIO_VSOCK_F_SIZE_MAX is set. This field specifies the maximum packet payload
> > +size for the driver to use.
> > +
> > +\devicenormative{\subsubsection}{Device configuration layout}{Device Types / Socket Device / Device configuration layout}
> > +
> > +The device MUST NOT change the value exposed through \field{data_max_size}.
> > +
> > +\drivernormative{\subsubsection}{Device configuration layout}{Device Types / Socket Device / Device configuration layout}
> > +
> > +A driver SHOULD negotiate VIRTIO_VSOCK_F_SIZE_MAX if the device offers it.
> > +
> > +If the driver negotiates VIRTIO_VSOCK_F_SIZE_MAX, the receive buffers it
> > +supplies for a packet MUST have a total size that doesn't exceed the size
> > +\field{data_max_size} (plus header length).
> > +
> > +If the driver negotiates VIRTIO_VSOCK_F_SIZE_MAX, it MUST  NOT transmit packets
> > +of size exceeding the value of \field{data_max_size} (plus header length).
> > +
> 
> Hi and sorry for being late to the party!
> 
> I believe I do understand why do we want to put a restriction on the
> size of the transmitted packets, but I would appreciate if you could
> explain to me why do we want to limit the receive buffer size.
> 
> Also I find the wording regarding a little bit ambiguous because
> in a networking context it also makes sense to talk about the size of the
> receive buffer. I guess hear we are talking about a single virtio buffer
> (a descriptor chain described potentially non-continuous (or compact in
> the mathematical sense of the word) which is composed from as many
> continuous chunks of memory as many descriptors are contained within the
> descriptor chain). If we are indeed talking about a single virtio buffer,
> I don't understand the plural. If not, I'm not sure what are we talking
> about.

I think I agree here, I don't understand the mix of "buffers" and "a
packet" either.

I voted "no" on the ballot, though if others feel we should apply as
is and fix up later, that is not too bad.


> Also, do we have some sort of packets may not cross virtio buffer
> boundaries, or even a single packet per single viritio buffer rule for
> vsock. I did a quick search and could not find any. Did I overlook
> something? Should we spell this out?
> 
> @Michael, Conny: What do you think? 
> 
> Regards,
> Halil


  reply	other threads:[~2022-06-16 16:40 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-13 10:40 [virtio-comment] [PATCH v4] virtio-vsock: add max payload size config field Laura Loghin
2022-06-13 11:50 ` Cornelia Huck
2022-06-13 12:51   ` Stefano Garzarella
2022-06-14 11:57 ` Halil Pasic
2022-06-16 16:40   ` Michael S. Tsirkin [this message]
2022-06-20  9:43     ` Cornelia Huck
2022-06-20  9:47       ` Laura Loghin
2022-06-20 10:13       ` Michael S. Tsirkin
2022-06-20 10:18         ` Laura Loghin
2022-06-20 11:20           ` Cornelia Huck
2022-06-20 13:07             ` Laura Loghin
2022-06-20 13:29               ` Cornelia Huck
2022-06-24  9:53                 ` Laura Loghin
2022-06-23 15:36     ` Laura Loghin
2022-06-23 16:22       ` Michael S. Tsirkin
2022-06-24  8:23         ` Laura Loghin
2022-06-27 12:59           ` Halil Pasic
2022-06-27 13:15             ` Michael S. Tsirkin
2022-06-27 13:33               ` Laura Loghin
2022-06-27 15:20                 ` Michael S. Tsirkin
2022-06-23 15:11   ` Laura Loghin

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=20220616123431-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=cohuck@redhat.com \
    --cc=lauralg@amazon.com \
    --cc=pasic@linux.ibm.com \
    --cc=sgarzare@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox