WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [linux-2.6.18-xen] Bind PCI back driver to PCI device sp

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] Bind PCI back driver to PCI device specified by "guestdev=".
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 05 Jan 2009 11:50:13 -0800
Delivery-date: Mon, 05 Jan 2009 11:49:58 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1231152848 0
# Node ID 78d81e85e8cd8a0a26bc9b760c67d435341f43f8
# Parent  2fdc121e9b5d76464b3efd47d711c58253ef6348
Bind PCI back driver to PCI device specified by "guestdev=".

This patch binds PCI back driver to PCI device specified by
"guestdev=" boot parameter.

Signed-off-by: Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>
---
 drivers/xen/pciback/pci_stub.c |   10 ++++++++++
 1 files changed, 10 insertions(+)

diff -r 2fdc121e9b5d -r 78d81e85e8cd drivers/xen/pciback/pci_stub.c
--- a/drivers/xen/pciback/pci_stub.c    Mon Jan 05 10:53:44 2009 +0000
+++ b/drivers/xen/pciback/pci_stub.c    Mon Jan 05 10:54:08 2009 +0000
@@ -427,6 +427,16 @@ static int __devinit pcistub_probe(struc
 
                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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] Bind PCI back driver to PCI device specified by "guestdev="., Xen patchbot-linux-2.6.18-xen <=