From: "Michael S. Tsirkin" <mst@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: "Andrew Lunn" <andrew@lunn.ch>, "Paolo Abeni" <pabeni@redhat.com>,
"Jason Wang" <jasowang@redhat.com>,
"Eugenio Pérez" <eperezma@redhat.com>,
"Xuan Zhuo" <xuanzhuo@linux.alibaba.com>,
"Jonathan Corbet" <corbet@lwn.net>,
kvm@vger.kernel.org, virtualization@lists.linux.dev,
netdev@vger.kernel.org, linux-doc@vger.kernel.org
Subject: [PATCH v5 0/2] virtio: feature related cleanups
Date: Wed, 19 Nov 2025 01:55:09 -0500 [thread overview]
Message-ID: <cover.1763535083.git.mst@redhat.com> (raw)
Cleanup around handling of feature bits:
- address word/dword/qword confusion
- simplify interfaces so callers do not need to
remember in which 64 bit chunk each bit belongs
changes from v4: address comments by Jason
move features variable to beginning of block
unsigned long -> u64 - they are not the same
changes from v3:
drop an out of date unnecessary kdoc parser change
changes from v2:
- drop unnecessary casts
- rework the interface to use array of bits not
Michael S. Tsirkin (2):
virtio: clean up features qword/dword terms
vhost: switch to arrays of feature bits
drivers/vhost/net.c | 39 ++++++++++++------------
drivers/vhost/scsi.c | 9 ++++--
drivers/vhost/test.c | 10 ++++--
drivers/vhost/vhost.h | 42 +++++++++++++++++++++-----
drivers/vhost/vsock.c | 10 +++---
drivers/virtio/virtio.c | 12 ++++----
drivers/virtio/virtio_debug.c | 10 +++---
drivers/virtio/virtio_pci_modern_dev.c | 6 ++--
include/linux/virtio.h | 2 +-
include/linux/virtio_config.h | 2 +-
include/linux/virtio_features.h | 29 +++++++++---------
include/linux/virtio_pci_modern.h | 8 ++---
12 files changed, 109 insertions(+), 70 deletions(-)
--
MST
next reply other threads:[~2025-11-19 6:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-19 6:55 Michael S. Tsirkin [this message]
2025-11-19 6:55 ` [PATCH v5 1/2] virtio: clean up features qword/dword terms Michael S. Tsirkin
2025-11-19 6:55 ` [PATCH v5 2/2] vhost: switch to arrays of feature bits Michael S. Tsirkin
2025-11-19 11:04 ` Paolo Abeni
2025-11-19 12:34 ` Michael S. Tsirkin
2025-11-19 12:48 ` Michael S. Tsirkin
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=cover.1763535083.git.mst@redhat.com \
--to=mst@redhat.com \
--cc=andrew@lunn.ch \
--cc=corbet@lwn.net \
--cc=eperezma@redhat.com \
--cc=jasowang@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=virtualization@lists.linux.dev \
--cc=xuanzhuo@linux.alibaba.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).