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

[Xen-changelog] [xen-4.0-testing] VT-d: only scan secondary functions on multi-function devices



# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1288374385 -3600
# Node ID 571ae621125e5bf073a6dcfc73f433087e0a1972
# Parent  43b3f8ceb991c8410541fa763d2265dc3a539baa
VT-d: only scan secondary functions on multi-function devices

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
xen-unstable changeset:   22337:7afd8dd1d6cb
xen-unstable date:        Fri Oct 29 18:06:17 2010 +0100
---
 xen/drivers/passthrough/pci.c |    4 ++++
 1 files changed, 4 insertions(+)

diff -r 43b3f8ceb991 -r 571ae621125e xen/drivers/passthrough/pci.c
--- a/xen/drivers/passthrough/pci.c     Fri Oct 29 18:44:54 2010 +0100
+++ b/xen/drivers/passthrough/pci.c     Fri Oct 29 18:46:25 2010 +0100
@@ -440,6 +440,10 @@ int __init scan_pci_devices(void)
                         spin_unlock(&pcidevs_lock);
                         return -EINVAL;
                 }
+
+                if ( !func && !(pci_conf_read8(bus, dev, func,
+                                               PCI_HEADER_TYPE) & 0x80) )
+                    break;
             }
         }
     }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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