|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [linux-2.6.18-xen] Bind PCI back driver to PCI device sp
# 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 <=
|
Previous by Date: |
[Xen-changelog] [linux-2.6.18-xen] Expose HID, UID, SEG, BBN of PCI root bridge via sysfs., Xen patchbot-linux-2.6.18-xen |
Next by Date: |
[Xen-changelog] [linux-2.6.18-xen] Add "guestdev=" boot parameter., Xen patchbot-linux-2.6.18-xen |
Previous by Thread: |
[Xen-changelog] [linux-2.6.18-xen] Expose HID, UID, SEG, BBN of PCI root bridge via sysfs., Xen patchbot-linux-2.6.18-xen |
Next by Thread: |
[Xen-changelog] [linux-2.6.18-xen] Add "guestdev=" boot parameter., Xen patchbot-linux-2.6.18-xen |
Indexes: |
[Date]
[Thread]
[Top]
[All Lists] |
|
|
|
|