Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c254de1 authored by Konrad Rzeszutek Wilk's avatar Konrad Rzeszutek Wilk
Browse files

xen/pciback: Expand the warning message to include domain id.



When a PCI device is transferred to another domain and it is still
in usage (from the internal perspective), mention which other
domain is using it to aid in debugging.

[v2: Truncate the verbose message per Jan Beulich suggestion]
[v3: Suggestions from Ian Campbell on the wording]
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: default avatarJan Beulich <jbeulich@suse.com>
parent 31673558
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -243,8 +243,8 @@ static int xen_pcibk_export_device(struct xen_pcibk_device *pdev,
	dev_dbg(&dev->dev, "registering for %d\n", pdev->xdev->otherend_id);
	dev_dbg(&dev->dev, "registering for %d\n", pdev->xdev->otherend_id);
	if (xen_register_device_domain_owner(dev,
	if (xen_register_device_domain_owner(dev,
					     pdev->xdev->otherend_id) != 0) {
					     pdev->xdev->otherend_id) != 0) {
		dev_err(&dev->dev, "device has been assigned to another " \
		dev_err(&dev->dev, "Stealing ownership from dom%d.\n",
			"domain! Over-writting the ownership, but beware.\n");
			xen_find_device_domain_owner(dev));
		xen_unregister_device_domain_owner(dev);
		xen_unregister_device_domain_owner(dev);
		xen_register_device_domain_owner(dev, pdev->xdev->otherend_id);
		xen_register_device_domain_owner(dev, pdev->xdev->otherend_id);
	}
	}