aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2012-01-04 15:11:02 -0500
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2012-01-07 20:35:56 -0500
commit3167355801505886209374daf86a452034e34ee8 (patch)
treeb8749f0b98b4a60a940d5f55292745134ec71a12 /drivers/xen
parent97309d3974fd371920cc8b932e2b6b5e4100c7c6 (diff)
xen/pciback: Fix "device has been assigned to X domain!" warning
The full warning is: "pciback 0000:05:00.0: device has been assigned to 2 domain! Over-writting the ownership, but beware." which is correct - the previous domain that was using the device forgot to unregister the ownership. This patch fixes this by calling the unregister ownership function when the PCI device is relinquished from the guest domain. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen')
-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 405445965690..7944a17f5cbf 100644
--- a/drivers/xen/xen-pciback/pci_stub.c
+++ b/drivers/xen/xen-pciback/pci_stub.c
@@ -235,6 +235,8 @@ void pcistub_put_pci_dev(struct pci_dev *dev)
235 xen_pcibk_config_free_dyn_fields(found_psdev->dev); 235 xen_pcibk_config_free_dyn_fields(found_psdev->dev);
236 xen_pcibk_config_reset_dev(found_psdev->dev); 236 xen_pcibk_config_reset_dev(found_psdev->dev);
237 237
238 xen_unregister_device_domain_owner(found_psdev->dev);
239
238 spin_lock_irqsave(&found_psdev->lock, flags); 240 spin_lock_irqsave(&found_psdev->lock, flags);
239 found_psdev->pdev = NULL; 241 found_psdev->pdev = NULL;
240 spin_unlock_irqrestore(&found_psdev->lock, flags); 242 spin_unlock_irqrestore(&found_psdev->lock, flags);