diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2009-12-09 17:43:15 -0500 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-07-19 20:58:29 -0400 |
commit | 6221a9b2a11acfb54e7b41da425e961b31e88553 (patch) | |
tree | cea7181fabd0f3baacb50cbc67c87d58ff17e7ec /drivers/xen/xen-pciback/pci_stub.c | |
parent | 8bfd4e023f5fb5793d7d7483b6e17e04933c53e9 (diff) | |
download | talos-obmc-linux-6221a9b2a11acfb54e7b41da425e961b31e88553.tar.gz talos-obmc-linux-6221a9b2a11acfb54e7b41da425e961b31e88553.zip |
xen/pciback: Register the owner (domain) of the PCI device.
When the front-end and back-end start negotiating we register
the domain that will use the PCI device. Furthermore during shutdown
of guest or unbinding of the PCI device (and unloading of module)
from pciback we unregister the domain owner.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'drivers/xen/xen-pciback/pci_stub.c')
-rw-r--r-- | drivers/xen/xen-pciback/pci_stub.c | 2 |
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 e7853c340d7c..ac8396d8206b 100644 --- a/drivers/xen/xen-pciback/pci_stub.c +++ b/drivers/xen/xen-pciback/pci_stub.c @@ -90,6 +90,8 @@ static void pcistub_device_release(struct kref *kref) dev_dbg(&psdev->dev->dev, "pcistub_device_release\n"); + xen_unregister_device_domain_owner(psdev->dev); + /* Clean-up the device */ pciback_reset_device(psdev->dev); pciback_config_free_dyn_fields(psdev->dev); |