# HG changeset patch # User Keir Fraser # Date 1288371977 -3600 # Node ID 7afd8dd1d6cb97484d263311f3f0e6ab74d27ed3 # Parent 49803ac994f4094719ec2c3b67d82561a24ba293 VT-d: only scan secondary functions on multi-function devices Signed-off-by: Jan Beulich --- a/xen/drivers/passthrough/pci.c +++ b/xen/drivers/passthrough/pci.c @@ -442,6 +442,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; } } }