linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/3] virtio: feature related cleanups
@ 2025-11-27  6:40 Michael S. Tsirkin
  2025-11-27  6:40 ` [PATCH v6 1/3] virtio: clean up features qword/dword terms Michael S. Tsirkin
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Michael S. Tsirkin @ 2025-11-27  6:40 UTC (permalink / raw)
  To: linux-kernel
  Cc: Andrew Lunn, Paolo Abeni, Jason Wang, Eugenio Pérez,
	Xuan Zhuo, Jonathan Corbet, kvm, virtualization, netdev,
	linux-doc



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 v5:
  rename variables in vhost to make the diff much smaller
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 (3):
  virtio: clean up features qword/dword terms
  vhost/test: add test specific macro for features
  vhost: switch to arrays of feature bits

 drivers/vhost/net.c                    | 29 +++++++++---------
 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, 104 insertions(+), 65 deletions(-)

-- 
MST


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-11-30 23:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-27  6:40 [PATCH v6 0/3] virtio: feature related cleanups Michael S. Tsirkin
2025-11-27  6:40 ` [PATCH v6 1/3] virtio: clean up features qword/dword terms Michael S. Tsirkin
2025-11-27  6:40 ` [PATCH v6 2/3] vhost/test: add test specific macro for features Michael S. Tsirkin
2025-11-27  6:40 ` [PATCH v6 3/3] vhost: switch to arrays of feature bits Michael S. Tsirkin
2025-11-28  2:39   ` Jason Wang
2025-11-30 23:03     ` Michael S. Tsirkin

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).