summaryrefslogtreecommitdiffstats
path: root/hw/vfio/pci.c
diff options
context:
space:
mode:
authorAlex Williamson2018-06-05 16:23:17 +0200
committerAlex Williamson2018-06-05 16:23:17 +0200
commit469d02de993817dcf4430d08fdff92aef8352d8f (patch)
treeb68ab27a473aa68f93c0ce20e7ec2b8da10954d8 /hw/vfio/pci.c
parentvfio/quirks: Add common quirk alloc helper (diff)
downloadqemu-469d02de993817dcf4430d08fdff92aef8352d8f.tar.gz
qemu-469d02de993817dcf4430d08fdff92aef8352d8f.tar.xz
qemu-469d02de993817dcf4430d08fdff92aef8352d8f.zip
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>
Diffstat (limited to 'hw/vfio/pci.c')
-rw-r--r--hw/vfio/pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index 4947fe39a2..65446fb428 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -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)