]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/vfio/pci/vfio_pci.c
vfio-pci: Attempt bus/slot reset on release
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 7 Aug 2014 17:12:07 +0000 (11:12 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 7 Aug 2014 17:12:07 +0000 (11:12 -0600)
commitbc4fba77124e2fe4eb14bcb52875c0b0228deace
tree32c9a964e7e40735ef6e9841f2509053f5e24729
parent61d792562b53c610f9fe917f2bbc22218aa39c22
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>
drivers/vfio/pci/vfio_pci.c
drivers/vfio/pci/vfio_pci_private.h