[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] passthrough/vtd: disable 64-bit MMCFG quirk on 32-bit Xen



# HG changeset patch
# User Allen Kay <allen.m.kay@xxxxxxxxx>
# Date 1296587456 0
# Node ID 3edd21ffe407ac0e853d51aa8302d9bdb4068749
# Parent  0e2c8b75f7d233f15f8bb49d9db0579e7a350964
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@xxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 xen/drivers/passthrough/vtd/quirks.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -r 0e2c8b75f7d2 -r 3edd21ffe407 xen/drivers/passthrough/vtd/quirks.c
--- a/xen/drivers/passthrough/vtd/quirks.c      Tue Feb 01 19:07:07 2011 +0000
+++ b/xen/drivers/passthrough/vtd/quirks.c      Tue Feb 01 19:10:56 2011 +0000
@@ -352,6 +352,7 @@ void me_wifi_quirk(struct domain *domain
  */
 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
+}

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.