From: "Michael S. Tsirkin" <mst@redhat.com>
To: Paolo Abeni <pabeni@redhat.com>
Cc: qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
Dmitry Fleytman <dmitry.fleytman@gmail.com>,
Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>,
Jason Wang <jasowang@redhat.com>,
Sriram Yagnaraman <sriram.yagnaraman@ericsson.com>,
Stefano Garzarella <sgarzare@redhat.com>,
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 v6 09/14] qmp: update virtio features map to support extended features
Date: Mon, 22 Sep 2025 09:15:48 -0400 [thread overview]
Message-ID: <20250922091422-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <ae5d139a-d6c7-477a-8083-26e64bdeda8b@redhat.com>
On Mon, Sep 22, 2025 at 03:10:36PM +0200, Paolo Abeni wrote:
> On 9/22/25 2:55 PM, Michael S. Tsirkin wrote:
> > On Fri, Sep 12, 2025 at 03:07:00PM +0200, Paolo Abeni wrote:
> >> Extend the VirtioDeviceFeatures struct with an additional u64
> >> to track unknown features in the 64-127 bit range and decode
> >> the full virtio features spaces for vhost and virtio devices.
> >>
> >> Also add entries for the soon-to-be-supported virtio net GSO over
> >> UDP features.
> >>
> >> Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
> >> Acked-by: Jason Wang <jasowang@redhat.com>
> >> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
> >> ---
> >> v3 -> v4:
> >> - cleanup unknown features init
> >> - update QMP example and doc accordingly
> >> - use new virtio_features macro names
> >>
> >> v2 -> v3:
> >> - unknown-dev-features-dword2 -> unknown-dev-features2
> >> - _array -> _ex
> >> - fixed typos in entries description
> >>
> >> v1 -> v2:
> >> - uint128_t -> uint64_t[]
> >> ---
> >> hw/virtio/virtio-hmp-cmds.c | 3 +-
> >> hw/virtio/virtio-qmp.c | 91 +++++++++++++++++++++++++------------
> >> hw/virtio/virtio-qmp.h | 3 +-
> >> qapi/virtio.json | 9 +++-
> >> 4 files changed, 74 insertions(+), 32 deletions(-)
> >>
> >> diff --git a/hw/virtio/virtio-hmp-cmds.c b/hw/virtio/virtio-hmp-cmds.c
> >> index 7d8677bcf0..1daae482d3 100644
> >> --- a/hw/virtio/virtio-hmp-cmds.c
> >> +++ b/hw/virtio/virtio-hmp-cmds.c
> >> @@ -74,7 +74,8 @@ static void hmp_virtio_dump_features(Monitor *mon,
> >> }
> >>
> >> if (features->has_unknown_dev_features) {
> >> - monitor_printf(mon, " unknown-features(0x%016"PRIx64")\n",
> >> + monitor_printf(mon, " unknown-features(0x%016"PRIx64"%016"PRIx64")\n",
> >> + features->unknown_dev_features2,
> >> features->unknown_dev_features);
> >> }
> >> }
> >> diff --git a/hw/virtio/virtio-qmp.c b/hw/virtio/virtio-qmp.c
> >> index 3b6377cf0d..502c9ae930 100644
> >> --- a/hw/virtio/virtio-qmp.c
> >> +++ b/hw/virtio/virtio-qmp.c
> >> @@ -325,6 +325,20 @@ static const qmp_virtio_feature_map_t virtio_net_feature_map[] = {
> >> FEATURE_ENTRY(VHOST_USER_F_PROTOCOL_FEATURES, \
> >> "VHOST_USER_F_PROTOCOL_FEATURES: Vhost-user protocol features "
> >> "negotiation supported"),
> >> + FEATURE_ENTRY(VIRTIO_NET_F_GUEST_UDP_TUNNEL_GSO, \
> >> + "VIRTIO_NET_F_GUEST_UDP_TUNNEL_GSO: Driver can receive GSO over "
> >> + "UDP tunnel packets"),
> >> + FEATURE_ENTRY(VIRTIO_NET_F_GUEST_UDP_TUNNEL_GSO_CSUM, \
> >> + "VIRTIO_NET_F_GUEST_UDP_TUNNEL_GSO: Driver can receive GSO over "
> >
> > This really should be VIRTIO_NET_F_GUEST_UDP_TUNNEL_GSO_CSUM.
> >
> > Given they all seem to start with repeating the feature name,
> > why not just add it to the string automatically by the macro?
>
> UHmm... let me keep the things simple and just fix the string; macro
> refactoring could be a follow-up, I hope?
>
> Thanks,
>
> Paolo
the fix can be a follow-up too, but I'd like it done now pls,
there could be more I missed.
--
MST
next prev parent reply other threads:[~2025-09-22 13:17 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-12 13:06 [PATCH v6 00/14] virtio: introduce support for GSO over UDP tunnel Paolo Abeni
2025-09-12 13:06 ` [PATCH v6 01/14] net: bundle all offloads in a single struct Paolo Abeni
2025-09-12 13:06 ` [PATCH v6 02/14] linux-headers: deal with counted_by annotation Paolo Abeni
2025-09-17 12:10 ` Stefano Garzarella
2025-09-12 13:06 ` [PATCH v6 03/14] linux-headers: Update to Linux v6.17-rc1 Paolo Abeni
2025-09-12 13:06 ` [PATCH v6 04/14] virtio: introduce extended features type Paolo Abeni
2025-09-17 12:12 ` Stefano Garzarella
2025-09-17 12:24 ` Stefano Garzarella
2025-09-12 13:06 ` [PATCH v6 05/14] virtio: serialize extended features state Paolo Abeni
2025-09-17 12:13 ` Stefano Garzarella
2025-09-12 13:06 ` [PATCH v6 06/14] virtio: add support for negotiating extended features Paolo Abeni
2025-09-17 12:19 ` Stefano Garzarella
2025-09-12 13:06 ` [PATCH v6 07/14] virtio-pci: implement support for " Paolo Abeni
2025-09-17 12:25 ` Stefano Garzarella
2025-09-12 13:06 ` [PATCH v6 08/14] vhost: add support for negotiating " Paolo Abeni
2025-09-17 12:29 ` Stefano Garzarella
2025-09-12 13:07 ` [PATCH v6 09/14] qmp: update virtio features map to support " Paolo Abeni
2025-09-12 13:42 ` Markus Armbruster
2025-09-12 13:57 ` Paolo Abeni
2025-09-12 14:04 ` Markus Armbruster
2025-09-17 12:35 ` Stefano Garzarella
2025-09-22 12:55 ` Michael S. Tsirkin
2025-09-22 13:10 ` Paolo Abeni
2025-09-22 13:15 ` Michael S. Tsirkin [this message]
2025-09-22 13:28 ` Paolo Abeni
2025-09-12 13:07 ` [PATCH v6 10/14] vhost-backend: implement extended features support Paolo Abeni
2025-09-17 12:29 ` Stefano Garzarella
2025-09-12 13:07 ` [PATCH v6 11/14] vhost-net: " Paolo Abeni
2025-09-12 13:07 ` [PATCH v6 12/14] virtio-net: " Paolo Abeni
2025-09-12 13:07 ` [PATCH v6 13/14] net: implement tunnel probing Paolo Abeni
2025-09-17 12:36 ` Stefano Garzarella
2025-09-12 13:07 ` [PATCH v6 14/14] net: implement UDP tunnel features offloading Paolo Abeni
2025-09-15 14:39 ` [PATCH v6 00/14] virtio: introduce support for GSO over UDP tunnel Lei Yang
2025-09-19 9:09 ` 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=20250922091422-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=armbru@redhat.com \
--cc=cohuck@redhat.com \
--cc=dmitry.fleytman@gmail.com \
--cc=eblake@redhat.com \
--cc=g.lettieri@iet.unipi.it \
--cc=jasowang@redhat.com \
--cc=lrizzo@google.com \
--cc=odaki@rsg.ci.i.u-tokyo.ac.jp \
--cc=pabeni@redhat.com \
--cc=pbonzini@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).