pc: Factor out (un)plug handling of virtio-md-pci devices
Let's factor out (un)plug handling, to be reused from arm/virt code. Provide stubs for the case that CONFIG_VIRTIO_MD is not selected because neither virtio-mem nor virtio-pmem is enabled. While this cannot currently happen for x86, it will be possible for arm/virt. Message-ID: <20230711153445.514112-3-david@redhat.com> Tested-by:Mario Casquero <mcasquer@redhat.com> Reviewed-by:
Michael S. Tsirkin <mst@redhat.com> Signed-off-by:
David Hildenbrand <david@redhat.com>
Showing
- MAINTAINERS 1 addition, 0 deletionsMAINTAINERS
- hw/i386/pc.c 11 additions, 79 deletionshw/i386/pc.c
- hw/virtio/virtio-md-pci.c 63 additions, 0 deletionshw/virtio/virtio-md-pci.c
- include/hw/virtio/virtio-md-pci.h 6 additions, 0 deletionsinclude/hw/virtio/virtio-md-pci.h
- stubs/meson.build 1 addition, 0 deletionsstubs/meson.build
- stubs/virtio-md-pci.c 24 additions, 0 deletionsstubs/virtio-md-pci.c
stubs/virtio-md-pci.c
0 → 100644
Please register or sign in to comment