From: Paolo Abeni <pabeni@redhat.com>
To: Akihiko Odaki <akihiko.odaki@daynix.com>, qemu-devel@nongnu.org
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
"Daniel P. Berrangé" <berrange@redhat.com>,
"Eduardo Habkost" <eduardo@habkost.net>,
"Dmitry Fleytman" <dmitry.fleytman@gmail.com>,
"Jason Wang" <jasowang@redhat.com>,
"Sriram Yagnaraman" <sriram.yagnaraman@ericsson.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Stefano Garzarella" <sgarzare@redhat.com>,
"Peter Xu" <peterx@redhat.com>, "Fabiano Rosas" <farosas@suse.de>,
"Cornelia Huck" <cohuck@redhat.com>,
"Luigi Rizzo" <lrizzo@google.com>,
"Giuseppe Lettieri" <g.lettieri@iet.unipi.it>,
"Vincenzo Maffione" <v.maffione@gmail.com>,
"Eric Blake" <eblake@redhat.com>,
"Markus Armbruster" <armbru@redhat.com>
Subject: Re: [PATCH RFC 00/16] virtio: introduce support for GSO over UDP tunnel
Date: Fri, 23 May 2025 11:43:51 +0200 [thread overview]
Message-ID: <5a4579c4-2569-4642-99a2-23ae29aa80c6@redhat.com> (raw)
In-Reply-To: <29808015-f8b3-4e18-8d1d-5280bda4ee3d@daynix.com>
On 5/23/25 9:19 AM, Akihiko Odaki wrote:
> On 2025/05/21 20:33, Paolo Abeni wrote:
>> Some virtualized deployments use UDP tunnel pervasively and are impacted
>> negatively by the lack of GSO support for such kind of traffic in the
>> virtual NIC driver.
>>
>> The virtio_net specification recently introduced support for GSO over
>> UDP tunnel, this series updates the virtio implementation to support
>> such a feature.
>>
>> One of the reasons for the RFC tag is that the kernel-side
>> implementation has just been shared upstream and is not merged yet, but
>> there are also other relevant reasons, see below.
>>
>> Currently, the kernel virtio support limits the feature space to 64 bits,
>> while the virtio specification allows for a larger number of features.
>> Specifically, the GSO-over-UDP-tunnel-related virtio features use bits
>> 65-69; the larger part of this series (patches 2-11) actually deals with
>> the extended feature space.
>>
>> I tried to minimize the otherwise very large code churn by limiting the
>> extended features support to arches with native 128 integer support and
>> introducing the extended features space support only in virtio/vhost
>> core and in the relevant device driver.
>
> What about adding another 64-bit integer to hold the high bits? It makes
> adding the 128-bit integer type to VMState and properties and
> CONFIG_INT128 checks unnecessary.
I did a few others implementation attempts before the current one. The
closes to the above proposal I tried was to implement virtio_features_t
as fixed size array of u64.
A problem a found with that approach is that it requires a very large
code churn, as ~ every line touching a feature related variable should
be modified.
Let me think a little bit on this other option (I hope to avoid
discarding a lot of work here).
>> The actual offload implementation is in patches 12-16 and boils down to
>> propagating the new offload to the tun devices and the vhost backend.
>>
>> Tested with basic stream transfer with all the possible permutations of
>> host kernel/qemu/guest kernel with/without GSO over UDP tunnel support
>> and vs snapshots creation and restore.
>>
>> Notably this does not include (yet) any additional tests. Some guidance
>> on such matter would be really appreciated, and any feedback about the
>> features extension strategy would be more than welcome!
>
> My proposal to add a feature to tap devices[1] simply omitted tests and
> I wrote simple testing scripts for my personal usage. As you can see,
> there is no testing code that covers tap devices, unfortunately, and I
> think adding one takes significant effort.
>
> [1] https://patchew.org/QEMU/20250313-hash-v4-0-c75c494b495e@daynix.com/
Thanks for the pointer
Paolo
next prev parent reply other threads:[~2025-05-23 9:44 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-21 11:33 [PATCH RFC 00/16] virtio: introduce support for GSO over UDP tunnel Paolo Abeni
2025-05-21 11:33 ` [PATCH RFC 01/16] linux-headers: Update to Linux v6.15-rc net-next Paolo Abeni
2025-05-23 9:50 ` Akihiko Odaki
2025-05-23 10:06 ` Paolo Abeni
2025-05-21 11:33 ` [PATCH RFC 02/16] migration: introduce support for 128 bit int state Paolo Abeni
2025-05-21 11:33 ` [PATCH RFC 03/16] virtio: introduce extended features type Paolo Abeni
2025-05-21 11:33 ` [PATCH RFC 04/16] virtio: serialize extended features state Paolo Abeni
2025-05-21 11:33 ` [PATCH RFC 05/16] qmp: update virtio features map to support extended features Paolo Abeni
2025-05-21 11:34 ` [PATCH RFC 06/16] virtio: add support for negotiating " Paolo Abeni
2025-05-21 11:34 ` [PATCH RFC 07/16] virtio-pci: implement support for " Paolo Abeni
2025-05-23 7:23 ` Akihiko Odaki
2025-05-23 9:52 ` Paolo Abeni
2025-05-21 11:34 ` [PATCH RFC 08/16] vhost: add support for negotiating " Paolo Abeni
2025-05-21 11:34 ` [PATCH RFC 09/16] vhost-backend: implement extended features support Paolo Abeni
2025-05-21 11:34 ` [PATCH RFC 10/16] vhost-net: " Paolo Abeni
2025-05-21 11:34 ` [PATCH RFC 11/16] qdev-properties: add property for extended virtio features Paolo Abeni
2025-05-21 11:34 ` [PATCH RFC 12/16] virtio-net: implement extended features support Paolo Abeni
2025-05-23 8:09 ` Akihiko Odaki
2025-05-23 10:01 ` Paolo Abeni
2025-05-23 10:14 ` Akihiko Odaki
2025-05-21 11:34 ` [PATCH RFC 13/16] net: implement tunnel probing Paolo Abeni
2025-05-23 7:39 ` Akihiko Odaki
2025-05-23 10:24 ` Paolo Abeni
2025-05-23 10:32 ` Akihiko Odaki
2025-05-21 11:34 ` [PATCH RFC 14/16] net: bundle all offloads in a single struct Paolo Abeni
2025-05-23 7:45 ` Akihiko Odaki
2025-05-21 11:34 ` [PATCH RFC 15/16] net: implement tnl feature offloading Paolo Abeni
2025-05-23 8:16 ` Akihiko Odaki
2025-05-23 10:40 ` Paolo Abeni
2025-05-23 10:54 ` Akihiko Odaki
2025-05-23 11:06 ` Paolo Abeni
2025-05-23 11:35 ` Akihiko Odaki
2025-05-23 14:46 ` Paolo Abeni
2025-05-24 4:13 ` Akihiko Odaki
2025-05-21 11:34 ` [PATCH RFC 16/16] net: make vhost-net aware of GSO over UDP tunnel hdr layout Paolo Abeni
2025-05-23 8:22 ` Akihiko Odaki
2025-05-28 3:04 ` Lei Yang
2025-05-23 7:19 ` [PATCH RFC 00/16] virtio: introduce support for GSO over UDP tunnel Akihiko Odaki
2025-05-23 9:43 ` Paolo Abeni [this message]
2025-05-23 9:48 ` Akihiko Odaki
2025-06-21 6:39 ` Akihiko Odaki
2025-06-17 15:01 ` Paolo Abeni
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=5a4579c4-2569-4642-99a2-23ae29aa80c6@redhat.com \
--to=pabeni@redhat.com \
--cc=akihiko.odaki@daynix.com \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=cohuck@redhat.com \
--cc=dmitry.fleytman@gmail.com \
--cc=eblake@redhat.com \
--cc=eduardo@habkost.net \
--cc=farosas@suse.de \
--cc=g.lettieri@iet.unipi.it \
--cc=jasowang@redhat.com \
--cc=lrizzo@google.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=sgarzare@redhat.com \
--cc=sriram.yagnaraman@ericsson.com \
--cc=v.maffione@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).