From: "Loghin, Laura" <lauralg@amazon.com>
To: Stefano Garzarella <sgarzare@redhat.com>
Cc: Arseniy Krasnov <oxffffaa@gmail.com>,
"virtio-comment@lists.oasis-open.org"
<virtio-comment@lists.oasis-open.org>
Subject: Re: [virtio-comment] vsock: define a maximum size for the packet data
Date: Tue, 22 Mar 2022 09:57:59 +0000 [thread overview]
Message-ID: <1647943078836.86626@amazon.com> (raw)
In-Reply-To: <1645623537015.64403@amazon.com>
Hi,
Sorry for the super late reply! I just sent the patch for the `len` description [1].
Regarding the max size for the packet data, the proposal for adding a field in the config space sounds good to me. What would be some next steps here? Should I send a patch for this one as well? From what I understand, we would define a new feature for the max size, and
add a new field in the config space. Did I misunderstand it?
Thanks,
Laura
[1] https://lists.oasis-open.org/archives/virtio-comment/202203/msg00073.html
________________________________________
From: Loghin, Laura
Sent: Wednesday, February 23, 2022 3:38 PM
To: Stefano Garzarella
Cc: Arseniy Krasnov; virtio-comment@lists.oasis-open.org
Subject: Re: [EXTERNAL] [virtio-comment] vsock: define a maximum size for the packet data
Hello,
Yes I'll send a patch next week, these days I'll be on vacation.
Thank you,
Laura
________________________________________
From: virtio-comment@lists.oasis-open.org <virtio-comment@lists.oasis-open.org> on behalf of Stefano Garzarella <sgarzare@redhat.com>
Sent: Wednesday, February 23, 2022 10:57 AM
To: Loghin, Laura
Cc: Arseniy Krasnov; virtio-comment@lists.oasis-open.org
Subject: RE: [EXTERNAL] [virtio-comment] vsock: define a maximum size for the packet data
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe.
On Tue, Feb 22, 2022 at 08:46:29AM +0000, Loghin, Laura wrote:
>
>Hello,
>
>I was thinking that this limit would be used on the TX path (because on
>the RX, the device is considered to be trusted it will add a shorter
>buffer). The size of the TX buffer would still be the one from the
>header or from its descriptor (this is another thing that I think
>should be explicitly mentioned in the spec even though it's pretty
>obvious; there is no mention at this moment about what `len` is). The
The size of the TX buffers should be the one from the descriptor. (Now
we are using 2 buffers, one for the header and one for the payload, but
it is an implementation details).
Then the `len` field in the header contains the amount of bytes used for
the payload. So the buffer could be bigger then (hdr + payload).
For TX in the current implementation it never happens because of the way
the Linux driver is written, but for RX it happens just this, because
the driver allocates the buffer and the device can use only a part of
it.
However I agree that we could describe the `len` field better in the
specs, also because it's currently not really described.
If you want to send a patch, that would be great!
Thanks,
Stefano
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/
Amazon Development Center (Romania) S.R.L. registered office: 27A Sf. Lazar Street, UBC5, floor 2, Iasi, Iasi County, 700045, Romania. Registered in Romania. Registration number J22/2621/2005.
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:[~2022-03-22 9:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-17 12:31 [virtio-comment] vsock: define a maximum size for the packet data Loghin, Laura
2022-02-17 12:55 ` Stefano Garzarella
2022-02-22 8:18 ` Arseniy Krasnov
2022-02-22 8:46 ` Loghin, Laura
2022-02-22 9:20 ` Arseniy Krasnov
2022-02-23 8:57 ` Stefano Garzarella
2022-02-23 13:38 ` Loghin, Laura
2022-03-22 9:57 ` Loghin, Laura [this message]
2022-03-28 11:14 ` Stefano Garzarella
2022-04-04 13:55 ` Laura Loghin
2022-04-06 7:42 ` Stefano Garzarella
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=1647943078836.86626@amazon.com \
--to=lauralg@amazon.com \
--cc=oxffffaa@gmail.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 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.