From: "Alex Bennée" <alex.bennee@linaro.org>
To: qemu-devel@nongnu.org
Cc: "Daniel P. Berrangé" <berrange@redhat.com>,
virtio-fs@redhat.com, "Alex Bennée" <alex.bennee@linaro.org>,
"Eduardo Habkost" <eduardo@habkost.net>,
"Fam Zheng" <fam@euphon.net>,
"Mark Cave-Ayland" <mark.cave-ayland@ilande.co.uk>,
qemu-block@nongnu.org, "Stefan Hajnoczi" <stefanha@redhat.com>,
"Gerd Hoffmann" <kraxel@redhat.com>,
"Erik Schilling" <erik.schilling@linaro.org>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Hanna Reitz" <hreitz@redhat.com>,
"Eric Blake" <eblake@redhat.com>, "Kevin Wolf" <kwolf@redhat.com>,
"Jason Wang" <jasowang@redhat.com>,
"Raphael Norwitz" <raphael.norwitz@nutanix.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Markus Armbruster" <armbru@redhat.com>,
"Mathieu Poirier" <mathieu.poirier@linaro.org>,
"Viresh Kumar" <viresh.kumar@linaro.org>,
"Gonglei (Arei)" <arei.gonglei@huawei.com>
Subject: [Virtio-fs] [PATCH v5 0/6] virtio: cleanup vhost-user-generic and reduce c&p
Date: Thu, 19 Oct 2023 10:56:04 +0100 [thread overview]
Message-ID: <20231019095610.2818087-1-alex.bennee@linaro.org> (raw)
A lot of our vhost-user stubs are large chunks of boilerplate that do
(mostly) the same thing. This series continues the cleanups by
splitting the vhost-user-base and vhost-user-generic implementations.
After adding a new vq_size property the rng, gpio and i2c vhost-user
devices become simple specialisations of the common base defining the
ID, number of queues and potentially the config handling.
I've also added Manos' vhost-user-sound while I was at it.
Changes
-------
v5
- addressing comments and tags
- improved the docs
v4
- dropped the F_TRANSPORT work for another series
- added vhost-user-sound
Alex Bennée (5):
virtio: split into vhost-user-base and vhost-user-device
hw/virtio: derive vhost-user-rng from vhost-user-base
hw/virtio: derive vhost-user-gpio from vhost-user-base
hw/virtio: derive vhost-user-i2c from vhost-user-base
docs/system: add a basic enumeration of vhost-user devices
Manos Pitsidianakis (1):
hw/virtio: add vhost-user-snd and virtio-snd-pci devices
docs/system/devices/vhost-user-rng.rst | 2 +
docs/system/devices/vhost-user.rst | 60 ++-
...{vhost-user-device.h => vhost-user-base.h} | 21 +-
include/hw/virtio/vhost-user-gpio.h | 23 +-
include/hw/virtio/vhost-user-i2c.h | 14 +-
include/hw/virtio/vhost-user-rng.h | 11 +-
include/hw/virtio/vhost-user-snd.h | 26 ++
hw/virtio/vhost-user-base.c | 345 +++++++++++++++
hw/virtio/vhost-user-device-pci.c | 10 +-
hw/virtio/vhost-user-device.c | 335 +-------------
hw/virtio/vhost-user-gpio.c | 407 +-----------------
hw/virtio/vhost-user-i2c.c | 272 +-----------
hw/virtio/vhost-user-rng.c | 278 +-----------
hw/virtio/vhost-user-snd-pci.c | 75 ++++
hw/virtio/vhost-user-snd.c | 67 +++
hw/virtio/Kconfig | 5 +
hw/virtio/meson.build | 23 +-
17 files changed, 683 insertions(+), 1291 deletions(-)
rename include/hw/virtio/{vhost-user-device.h => vhost-user-base.h} (71%)
create mode 100644 include/hw/virtio/vhost-user-snd.h
create mode 100644 hw/virtio/vhost-user-base.c
create mode 100644 hw/virtio/vhost-user-snd-pci.c
create mode 100644 hw/virtio/vhost-user-snd.c
--
2.39.2
next reply other threads:[~2023-10-19 9:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-19 9:56 Alex Bennée [this message]
2023-10-19 9:56 ` [Virtio-fs] [PATCH v5 1/6] virtio: split into vhost-user-base and vhost-user-device Alex Bennée
2023-10-19 9:56 ` [Virtio-fs] [PATCH v5 2/6] hw/virtio: derive vhost-user-rng from vhost-user-base Alex Bennée
2023-10-19 9:56 ` [Virtio-fs] [PATCH v5 3/6] hw/virtio: derive vhost-user-gpio " Alex Bennée
2023-10-19 9:56 ` [Virtio-fs] [PATCH v5 4/6] hw/virtio: derive vhost-user-i2c " Alex Bennée
2023-10-19 9:56 ` [Virtio-fs] [PATCH v5 5/6] hw/virtio: add vhost-user-snd and virtio-snd-pci devices Alex Bennée
2023-10-20 3:14 ` Viresh Kumar
2023-10-20 8:16 ` Alex Bennée
2023-10-20 9:02 ` Michael S. Tsirkin
2023-10-20 9:03 ` Manos Pitsidianakis
2023-10-19 9:56 ` [Virtio-fs] [PATCH v5 6/6] docs/system: add a basic enumeration of vhost-user devices Alex Bennée
2023-10-24 17:14 ` [Virtio-fs] [PATCH v5 0/6] virtio: cleanup vhost-user-generic and reduce c&p Alex Bennée
2023-10-24 17:18 ` 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=20231019095610.2818087-1-alex.bennee@linaro.org \
--to=alex.bennee@linaro.org \
--cc=arei.gonglei@huawei.com \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=eblake@redhat.com \
--cc=eduardo@habkost.net \
--cc=erik.schilling@linaro.org \
--cc=fam@euphon.net \
--cc=hreitz@redhat.com \
--cc=jasowang@redhat.com \
--cc=kraxel@redhat.com \
--cc=kwolf@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=mathieu.poirier@linaro.org \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=raphael.norwitz@nutanix.com \
--cc=stefanha@redhat.com \
--cc=viresh.kumar@linaro.org \
--cc=virtio-fs@redhat.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 read-only IMAP folder(s) and NNTP newsgroup(s).