mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00

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>
24 lines
718 B
C
24 lines
718 B
C
#include "qemu/osdep.h"
|
|
#include "qapi/error.h"
|
|
#include "hw/s390x/virtio-ccw-md.h"
|
|
|
|
void virtio_ccw_md_pre_plug(VirtIOMDCcw *vmd, MachineState *ms, Error **errp)
|
|
{
|
|
error_setg(errp, "virtio based memory devices not supported");
|
|
}
|
|
|
|
void virtio_ccw_md_plug(VirtIOMDCcw *vmd, MachineState *ms, Error **errp)
|
|
{
|
|
error_setg(errp, "virtio based memory devices not supported");
|
|
}
|
|
|
|
void virtio_ccw_md_unplug_request(VirtIOMDCcw *vmd, MachineState *ms,
|
|
Error **errp)
|
|
{
|
|
error_setg(errp, "virtio based memory devices not supported");
|
|
}
|
|
|
|
void virtio_ccw_md_unplug(VirtIOMDCcw *vmd, MachineState *ms, Error **errp)
|
|
{
|
|
error_setg(errp, "virtio based memory devices not supported");
|
|
}
|