linux/drivers/xen/xen-pciback
Jan Beulich 6945c59c77 xen-pciback: drop SR-IOV VFs when PF driver unloads
When a PF driver unloads, it may find it necessary to leave the VFs
around simply because of pciback having marked them as assigned to a
guest. Utilize a suitable notification to let go of the VFs, thus
allowing the PF to go back into the state it was before its driver
loaded (which in particular allows the driver to be loaded again with
it being able to create the VFs anew, but which also allows to then
pass through the PF instead of the VFs).

Don't do this however for any VFs currently in active use by a guest.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
[v2: Removed the switch statement, moved it about]
[v3: Redid it a bit differently]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
2014-12-04 12:42:03 +00:00
..
conf_space_capability.c
conf_space_header.c xen: Convert printks to pr_<level> 2013-06-28 11:19:58 -04:00
conf_space_quirks.c
conf_space_quirks.h
conf_space.c PCI: create common pcibios_err_to_errno 2012-06-12 09:21:42 -06:00
conf_space.h
Makefile
passthrough.c xen/pciback: Don't deadlock when unbinding. 2014-12-04 12:41:58 +00:00
pci_stub.c xen-pciback: drop SR-IOV VFs when PF driver unloads 2014-12-04 12:42:03 +00:00
pciback_ops.c arch: Mass conversion of smp_mb__*() 2014-04-18 14:20:48 +02:00
pciback.h xen/pciback: Don't deadlock when unbinding. 2014-12-04 12:41:58 +00:00
vpci.c xen/pciback: Don't deadlock when unbinding. 2014-12-04 12:41:58 +00:00
xenbus.c xen/pciback: Print out the domain owning the device. 2014-12-04 12:42:00 +00:00