mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
c29dd73f74
commit
aac44204bc
2 changed files with 39 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue