Skip to content

hw/virtio: Build various target-agnostic objects just once

Philippe Mathieu-Daudé qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 13 repliesIn review
  2. v111 patches 25 repliesSuperseded

Changes in v2 from the cover letter

- Addressed Richard & Thomas review comments
. qemu_target_page_align() dropped
. qemu_target_page_mask() returns signed
. meson shuffle
- Collected R-b/T-b/A-b tags
- Dropped vhost-vdpa patch (to be posted as another series)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10softmmu: Introduce qemu_target_page_mask() helperinclude/exec/target_page.h softmmu/physmem.c+6 -02 replies
2/10hw/scsi: Introduce VHOST_SCSI_COMMON symbol in Kconfighw/scsi/Kconfig hw/scsi/meson.build+10 -21 reply
3/10hw/scsi: Rearrange meson.buildhw/scsi/meson.build+5 -52 replies
4/10hw/scsi: Rename target-specific source set as 'specific_virtio_scsi_ss'hw/scsi/meson.build+6 -61 reply
5/10hw/virtio: Introduce VHOST_VSOCK_COMMON symbol in Kconfighw/virtio/Kconfig hw/virtio/meson.build+9 -22 replies
6/10hw/virtio/virtio-mem: Use qemu_ram_get_fd() helperhw/virtio/virtio-mem.c+1 -11 reply
7/10hw/virtio/vhost-vsock: Include missing 'virtio/virtio-bus.h' headerhw/virtio/vhost-vsock-common.c+1 -02 replies
8/10hw/virtio/virtio-iommu: Use target-agnostic qemu_target_page_mask()hw/virtio/virtio-iommu.c+2 -11 reply
9/10hw/virtio: Remove unnecessary 'virtio-access.h' headerhw/block/dataplane/virtio-blk.c hw/s390x/virtio-ccw.c hw/scsi/vhost-scsi.c +9 more+0 -121 reply
10/10hw/virtio: Build various target-agnostic objects just oncehw/block/dataplane/meson.build hw/scsi/meson.build hw/virtio/meson.build+14 -90 replies

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchRichard HendersonThomas HuthDavid HildenbrandEric AugerAlex BennéeStefano Garzarella
1/10R-b R-b R-b
2/10R-b R-b R-b
3/10R-b R-b R-b
4/10R-b R-b
5/10R-b R-b R-b R-b
6/10R-b R-b R-b
7/10R-b R-b R-b R-b
8/10R-b R-b R-b
9/10A-b T-b R-b
10/10R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/10] hw/virtio: Build various target-agnostic objects just once

All patches reviewed.

Since v1:
- Addressed Richard & Thomas review comments
. qemu_target_page_align() dropped
. qemu_target_page_mask() returns signed
. meson shuffle
- Collected R-b/T-b/A-b tags
- Dropped vhost-vdpa patch (to be posted as another series)

Less controvertial than my first approach [*] which caches the access_is_big_endian value in VirtIODevice state, this series just remove a unnecessary / pointless dependency on "virtio-access.h", allowing to build various virtio objects once for all targets.

[*] https://lore.kernel.org/qemu-devel/[email protected]/

Philippe Mathieu-Daudé (10):
softmmu: Introduce qemu_target_page_mask() helper hw/scsi: Introduce VHOST_SCSI_COMMON symbol in Kconfig hw/scsi: Rearrange meson.build
hw/scsi: Rename target-specific source set as
'specific_virtio_scsi_ss'
hw/virtio: Introduce VHOST_VSOCK_COMMON symbol in Kconfig hw/virtio/virtio-mem: Use qemu_ram_get_fd() helper hw/virtio/vhost-vsock: Include missing 'virtio/virtio-bus.h' header hw/virtio/virtio-iommu: Use target-agnostic qemu_target_page_mask() hw/virtio: Remove unnecessary 'virtio-access.h' header hw/virtio: Build various target-agnostic objects just once

 include/exec/target_page.h      |  1 +
 hw/block/dataplane/virtio-blk.c |  1 -
 hw/s390x/virtio-ccw.c           |  1 -
 hw/scsi/vhost-scsi.c            |  1 -
 hw/scsi/vhost-user-scsi.c       |  1 -
 hw/scsi/virtio-scsi-dataplane.c |  1 -
 hw/virtio/vdpa-dev.c            |  1 -
 hw/virtio/vhost-vdpa.c          |  1 -
 hw/virtio/vhost-vsock-common.c  |  2 +-
 hw/virtio/vhost.c               |  1 -
 hw/virtio/virtio-crypto.c       |  1 -
 hw/virtio/virtio-iommu.c        |  4 ++--
 hw/virtio/virtio-mem.c          |  3 +--
 softmmu/physmem.c               |  5 +++++
 hw/block/dataplane/meson.build  |  2 +-
 hw/scsi/Kconfig                 |  6 ++++++
 hw/scsi/meson.build             | 20 +++++++++++++-------
 hw/virtio/Kconfig               |  6 ++++++
 hw/virtio/meson.build           | 14 ++++++++------
 19 files changed, 44 insertions(+), 28 deletions(-)
Signature · 1 line
2.38.1