From: Keir Fraser Date: Fri, 29 Oct 2010 17:06:17 +0000 (+0100) Subject: VT-d: only scan secondary functions on multi-function devices X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11306 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ddeda0449fdb3b17fd9950680dda190e580fb419;p=xen.git VT-d: only scan secondary functions on multi-function devices Signed-off-by: Jan Beulich --- diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c index d6d833142b..0a159804f1 100644 --- a/xen/drivers/passthrough/pci.c +++ b/xen/drivers/passthrough/pci.c @@ -445,6 +445,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; } } }