[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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@xxxxxxxxxxxxxxx>[

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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.