VT-d: only scan secondary functions on multi-function devices
PATCH 1/1 VT-d: only scan secondary functions on multi-function devices
Signed-off-by Jan Beulich <[email protected]>
xen/drivers/passthrough/pci.c +4 -0
@@ -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 ; } } }
Signed-off-by Jan Beulich <[email protected]>
xen/drivers/passthrough/pci.c +4 -0
@@ -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 ; } } }
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel