summaryrefslogtreecommitdiffstats
path: root/drivers/xen/xen-pciback/pci_stub.c
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2013-12-03 21:47:37 -0500
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2014-05-23 12:33:43 -0400
commit8be9df6d4b6b53112abb078cb58827767471d797 (patch)
treec052d5053b9aa8bf5968149170207393249c57e5 /drivers/xen/xen-pciback/pci_stub.c
parentfcb8ce968fb5d476cbb3f1547ade0c05fc2f6c59 (diff)
downloadop-kernel-dev-8be9df6d4b6b53112abb078cb58827767471d797.zip
op-kernel-dev-8be9df6d4b6b53112abb078cb58827767471d797.tar.gz
xen-pciback: Document when we FLR an PCI device.
When the toolstack wants us to drop or add an PCI device it changes the XenBus state to Configuring - and as result of that we find out which devices we should still be exporting out and which ones not. For the ones we don't need anymore we need to do an PCI reset so that it is ready for the next guest. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'drivers/xen/xen-pciback/pci_stub.c')
-rw-r--r--drivers/xen/xen-pciback/pci_stub.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/xen/xen-pciback/pci_stub.c b/drivers/xen/xen-pciback/pci_stub.c
index 36dd4f3..b84426a 100644
--- a/drivers/xen/xen-pciback/pci_stub.c
+++ b/drivers/xen/xen-pciback/pci_stub.c
@@ -551,6 +551,8 @@ static void pcistub_remove(struct pci_dev *dev)
pr_warn("****** shutdown driver domain before binding device\n");
pr_warn("****** to other drivers or domains\n");
+ /* N.B. This ends up calling pcistub_put_pci_dev which ends up
+ * doing the FLR. */
xen_pcibk_release_pci_dev(found_psdev->pdev,
found_psdev->dev);
}
OpenPOWER on IntegriCloud