s390x/virtio-ccw: add support for virtio based memory devices
authorDavid Hildenbrand <david@redhat.com>
Thu, 19 Dec 2024 14:41:14 +0000 (15:41 +0100)
committerDavid Hildenbrand <david@redhat.com>
Sat, 21 Dec 2024 14:59:59 +0000 (15:59 +0100)
commit88d86f6f1e36741ba9e1625da19a7ccf1a343d39
tree604efdd5e9dbbd7ca9516e82ea03bc4769bdaaf5
parentdf2ac211a62e6ced7f1495b634fa6f78962f2321
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>
MAINTAINERS
hw/s390x/meson.build
hw/s390x/s390-virtio-ccw.c
hw/s390x/virtio-ccw-md-stubs.c [new file with mode: 0644]
hw/s390x/virtio-ccw-md.c [new file with mode: 0644]
hw/s390x/virtio-ccw-md.h [new file with mode: 0644]
hw/virtio/Kconfig