aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Kay <allen.m.kay@intel.com>2011-02-01 19:10:56 +0000
committerAllen Kay <allen.m.kay@intel.com>2011-02-01 19:10:56 +0000
commit4bf774a903153931e98afbe009f1acb54af85d7a (patch)
tree572915070e1d98b65ceaff43aadf5c41283d717e
parent188eb6099a7e14bf58776f0afc04a8b0ebed935b (diff)
downloadxen-4bf774a903153931e98afbe009f1acb54af85d7a.tar.gz
xen-4bf774a903153931e98afbe009f1acb54af85d7a.tar.bz2
xen-4bf774a903153931e98afbe009f1acb54af85d7a.zip
passthrough/vtd: disable 64-bit MMCFG quirk on 32-bit Xen
Attached patch disables pci_vtd_quirk for 32-bit Xen since 32-bit xen does not support MMCFG access. Signed-off-by: Allen Kay <allen.m.kay@intel.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
-rw-r--r--xen/drivers/passthrough/vtd/quirks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/drivers/passthrough/vtd/quirks.c b/xen/drivers/passthrough/vtd/quirks.c
index f4f6060576..ef6c8d0f29 100644
--- a/xen/drivers/passthrough/vtd/quirks.c
+++ b/xen/drivers/passthrough/vtd/quirks.c
@@ -352,6 +352,7 @@ void me_wifi_quirk(struct domain *domain, u8 bus, u8 devfn, int map)
*/
void pci_vtd_quirk(struct pci_dev *pdev)
{
+#ifdef CONFIG_X86_64
int bus = pdev->bus;
int dev = PCI_SLOT(pdev->devfn);
int func = PCI_FUNC(pdev->devfn);
@@ -363,4 +364,5 @@ void pci_vtd_quirk(struct pci_dev *pdev)
val = pci_conf_read32(bus, dev, func, 0x1AC);
pci_conf_write32(bus, dev, func, 0x1AC, val | (1 << 31));
}
+#endif
}