vfio/quirks: Add quirk reset callback
commit469d02de993817dcf4430d08fdff92aef8352d8f
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 5 Jun 2018 14:23:17 +0000 (5 08:23 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 5 Jun 2018 14:23:17 +0000 (5 08:23 -0600)
treeb68ab27a473aa68f93c0ce20e7ec2b8da10954d8
parentbcf3c3d029e73d54455e1d7a51177c37d668378c
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>
hw/vfio/pci-quirks.c
hw/vfio/pci.c
hw/vfio/pci.h