diff options
| author | David Hildenbrand <david@redhat.com> | 2023-07-11 17:34:43 +0200 |
|---|---|---|
| committer | David Hildenbrand <david@redhat.com> | 2023-07-12 09:27:30 +0200 |
| commit | aac44204bc6d2a062c2e1658fe6a02a67f55b9e6 (patch) | |
| tree | 10630ade59ccd5e3af1dd3c5f263dd9102b2d249 /include/hw | |
| parent | c29dd73f74fe6020ee0755d938885919a3719194 (diff) | |
| download | focaccia-qemu-aac44204bc6d2a062c2e1658fe6a02a67f55b9e6.tar.gz focaccia-qemu-aac44204bc6d2a062c2e1658fe6a02a67f55b9e6.zip | |
virtio-md-pci: Support unplug requests for compatible devices
Let's support unplug requests for virtio-md-pci devices that provide a unplug_request_check() callback. We'll wire that up for virtio-mem-pci next. Message-ID: <20230711153445.514112-6-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>
Diffstat (limited to 'include/hw')
| -rw-r--r-- | include/hw/virtio/virtio-md-pci.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio-md-pci.h b/include/hw/virtio/virtio-md-pci.h index f9fa857aec..5912e16674 100644 --- a/include/hw/virtio/virtio-md-pci.h +++ b/include/hw/virtio/virtio-md-pci.h @@ -26,6 +26,9 @@ OBJECT_DECLARE_TYPE(VirtIOMDPCI, VirtIOMDPCIClass, VIRTIO_MD_PCI) struct VirtIOMDPCIClass { /* private */ VirtioPCIClass parent; + + /* public */ + void (*unplug_request_check)(VirtIOMDPCI *vmd, Error **errp); }; struct VirtIOMDPCI { |