diff options
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/xen-pciback/pci_stub.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/xen/xen-pciback/pci_stub.c b/drivers/xen/xen-pciback/pci_stub.c index 1539becad139..d57a173685f3 100644 --- a/drivers/xen/xen-pciback/pci_stub.c +++ b/drivers/xen/xen-pciback/pci_stub.c | |||
@@ -242,6 +242,15 @@ struct pci_dev *pcistub_get_pci_dev(struct xen_pcibk_device *pdev, | |||
242 | return found_dev; | 242 | return found_dev; |
243 | } | 243 | } |
244 | 244 | ||
245 | /* | ||
246 | * Called when: | ||
247 | * - XenBus state has been reconfigure (pci unplug). See xen_pcibk_remove_device | ||
248 | * - XenBus state has been disconnected (guest shutdown). See xen_pcibk_xenbus_remove | ||
249 | * - 'echo BDF > unbind' on pciback module with no guest attached. See pcistub_remove | ||
250 | * - 'echo BDF > unbind' with a guest still using it. See pcistub_remove | ||
251 | * | ||
252 | * As such we have to be careful. | ||
253 | */ | ||
245 | void pcistub_put_pci_dev(struct pci_dev *dev) | 254 | void pcistub_put_pci_dev(struct pci_dev *dev) |
246 | { | 255 | { |
247 | struct pcistub_device *psdev, *found_psdev = NULL; | 256 | struct pcistub_device *psdev, *found_psdev = NULL; |