mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
vfio/quirks: Add quirk reset callback
Quirks can be self modifying, provide a hook to allow them to cleanup on device reset if desired. Reviewed-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
parent
bcf3c3d029
commit
469d02de99
3 changed files with 19 additions and 0 deletions
|
@ -2207,6 +2207,8 @@ static void vfio_pci_post_reset(VFIOPCIDevice *vdev)
|
|||
vdev->vbasedev.name, nr);
|
||||
}
|
||||
}
|
||||
|
||||
vfio_quirk_reset(vdev);
|
||||
}
|
||||
|
||||
static bool vfio_pci_host_match(PCIHostDeviceAddress *addr, const char *name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue