diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2014-04-22 10:48:17 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2014-05-23 12:33:55 -0400 |
commit | 0a9fd0152929db372ff61b0d6c280fdd34ae8bdb (patch) | |
tree | df20160955d35fe46d95b451595c2c87f59ce43d /drivers/xen | |
parent | 24d8bf1b0a12a92171c6f08a665c6ff3f0788c91 (diff) |
xen/pciback: Document the entry points for 'pcistub_put_pci_dev'
which are quite a few. It should be evident that dealing with that
many options is a bit complex.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
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; |