aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/pci.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-01-21 09:12:01 +0000
committerKeir Fraser <keir.fraser@citrix.com>2010-01-21 09:12:01 +0000
commit3a007e1577a578f525f4c2b895cf098e9c72509a (patch)
tree52afb9e6d2629ffe94f4e68d8d1287443167a590 /xen/include/xen/pci.h
parent1ac4cf5651e58f177621450342a943ee5457cf0a (diff)
downloadxen-3a007e1577a578f525f4c2b895cf098e9c72509a.tar.gz
xen-3a007e1577a578f525f4c2b895cf098e9c72509a.tar.bz2
xen-3a007e1577a578f525f4c2b895cf098e9c72509a.zip
VT-d: improve RMRR validity checking
Currently, Xen checks RMRR range and disables VT-d if RMRR range is set incorrectly in BIOS rigorously. But, actually we can ignore the RMRR if the device under its scope are not pci discoverable, because the RMRR won't be used by non-existed or disabled devices. This patch ignores the RMRR if the device under its scope are not pci discoverable, and only checks the validity of RMRRs that are actually used. In order to avoid duplicate pci device detection code, this patch defines a function pci_device_detect for it. Signed-off-by: Weidong Han <weidong.han@intel.com>
Diffstat (limited to 'xen/include/xen/pci.h')
-rw-r--r--xen/include/xen/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/include/xen/pci.h b/xen/include/xen/pci.h
index 1740698cc6..2f2014fd64 100644
--- a/xen/include/xen/pci.h
+++ b/xen/include/xen/pci.h
@@ -74,6 +74,7 @@ enum {
DEV_TYPE_PCI,
};
+int pci_device_detect(u8 bus, u8 dev, u8 func);
int scan_pci_devices(void);
int pdev_type(u8 bus, u8 devfn);
int find_upstream_bridge(u8 *bus, u8 *devfn, u8 *secbus);