Stefan told me it would help the multi-process QEMU series if virtio devices where not arch-specific. As it didn't seem too complex, I gave it a try.
Philippe Mathieu-Daudé (3): hw/virtio: Add configure switch to disable legacy VIRTIO hw/virtio: Build most of virtio devices as arch-independent objects gitlab-ci: Test the --disable-virtio-legacy option configure | 10 ++++++++++ meson.build | 1 + include/hw/virtio/virtio-access.h | 19 +++++-------------- hw/virtio/virtio-legacy.c | 29 +++++++++++++++++++++++++++++ .gitlab-ci.yml | 1 + hw/9pfs/meson.build | 2 +- hw/block/dataplane/meson.build | 2 +- hw/block/meson.build | 2 +- hw/char/meson.build | 2 +- hw/net/meson.build | 2 +- hw/scsi/meson.build | 2 +- hw/virtio/meson.build | 14 +++++++++----- 12 files changed, 61 insertions(+), 25 deletions(-) create mode 100644 hw/virtio/virtio-legacy.c -- 2.26.2