diff options
author | David Hildenbrand <david@redhat.com> | 2024-12-19 15:41:14 +0100 |
---|---|---|
committer | David Hildenbrand <david@redhat.com> | 2024-12-21 15:59:59 +0100 |
commit | 88d86f6f1e36741ba9e1625da19a7ccf1a343d39 (patch) | |
tree | 604efdd5e9dbbd7ca9516e82ea03bc4769bdaaf5 /hw/s390x/meson.build | |
parent | df2ac211a62e6ced7f1495b634fa6f78962f2321 (diff) | |
download | qemu-88d86f6f1e36741ba9e1625da19a7ccf1a343d39.zip qemu-88d86f6f1e36741ba9e1625da19a7ccf1a343d39.tar.gz qemu-88d86f6f1e36741ba9e1625da19a7ccf1a343d39.tar.bz2 |
s390x/virtio-ccw: add support for virtio based memory devices
Let's implement support for abstract virtio based memory devices, using
the virtio-pci implementation as an orientation. Wire them up in the
machine hotplug handler, taking care of s390x page size limitations.
As we neither support virtio-mem or virtio-pmem yet, the code is
effectively unused. We'll implement support for virtio-mem based on this
next.
Note that we won't wire up the virtio-pci variant (should currently be
impossible due to lack of support for MSI-X), but we'll add a safety net
to reject plugging them in the pre-plug handler.
Message-ID: <20241219144115.2820241-14-david@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Diffstat (limited to 'hw/s390x/meson.build')
-rw-r--r-- | hw/s390x/meson.build | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/s390x/meson.build b/hw/s390x/meson.build index e344a3b..4431868 100644 --- a/hw/s390x/meson.build +++ b/hw/s390x/meson.build @@ -50,8 +50,11 @@ endif virtio_ss.add(when: 'CONFIG_VHOST_SCSI', if_true: files('vhost-scsi-ccw.c')) virtio_ss.add(when: 'CONFIG_VHOST_VSOCK', if_true: files('vhost-vsock-ccw.c')) virtio_ss.add(when: 'CONFIG_VHOST_USER_FS', if_true: files('vhost-user-fs-ccw.c')) +virtio_ss.add(when: 'CONFIG_VIRTIO_MD', if_true: files('virtio-ccw-md.c')) s390x_ss.add_all(when: 'CONFIG_VIRTIO_CCW', if_true: virtio_ss) +s390x_ss.add(when: 'CONFIG_VIRTIO_MD', if_false: files('virtio-ccw-md-stubs.c')) + hw_arch += {'s390x': s390x_ss} hw_s390x_modules = {} |