diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2014-08-07 21:12:07 +0400 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2014-08-07 21:12:07 +0400 |
commit | bc4fba77124e2fe4eb14bcb52875c0b0228deace (patch) | |
tree | 32c9a964e7e40735ef6e9841f2509053f5e24729 /drivers/vfio/pci/vfio_pci_private.h | |
parent | 61d792562b53c610f9fe917f2bbc22218aa39c22 (diff) | |
download | linux-bc4fba77124e2fe4eb14bcb52875c0b0228deace.tar.xz |
vfio-pci: Attempt bus/slot reset on release
Each time a device is released, mark whether a local reset was
successful or whether a bus/slot reset is needed. If a reset is
needed and all of the affected devices are bound to vfio-pci and
unused, allow the reset. This is most useful when the userspace
driver is killed and releases all the devices in an unclean state,
such as when a QEMU VM quits.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/pci/vfio_pci_private.h')
-rw-r--r-- | drivers/vfio/pci/vfio_pci_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vfio/pci/vfio_pci_private.h b/drivers/vfio/pci/vfio_pci_private.h index 31e7a30196ab..671c17a6e6d0 100644 --- a/drivers/vfio/pci/vfio_pci_private.h +++ b/drivers/vfio/pci/vfio_pci_private.h @@ -54,6 +54,7 @@ struct vfio_pci_device { bool extended_caps; bool bardirty; bool has_vga; + bool needs_reset; struct pci_saved_state *pci_saved_state; int refcnt; struct eventfd_ctx *err_trigger; |