Yuji Shimada
2008-Dec-25 07:10 UTC
[Xen-devel] [PATCH 3/4] dom0 linux: Bind PCI back driver to PCI device specified by "guestdev=".
This patch binds PCI back driver to PCI device specified by "guestdev=" boot parameter. Thanks, -- Yuji Shimada. Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>[ diff -r fcefb8852878 -r b392502044ca drivers/xen/pciback/pci_stub.c --- a/drivers/xen/pciback/pci_stub.c Thu Dec 25 10:43:34 2008 +0900 +++ b/drivers/xen/pciback/pci_stub.c Thu Dec 25 10:44:39 2008 +0900 @@ -427,6 +427,16 @@ dev_info(&dev->dev, "seizing device\n"); err = pcistub_seize(dev); +#ifdef CONFIG_PCI_GUESTDEV + } else if (dev->hdr_type == PCI_HEADER_TYPE_NORMAL) { + if (!pci_is_guestdev(dev)) { + err = -ENODEV; + goto out; + } + + dev_info(&dev->dev, "seizing device\n"); + err = pcistub_seize(dev); +#endif /* CONFIG_PCI_GUESTDEV */ } else /* Didn''t find the device */ err = -ENODEV; _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel