debuggers.hg

changeset 22898:3edd21ffe407

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>
author Allen Kay <allen.m.kay@intel.com>
date Tue Feb 01 19:10:56 2011 +0000 (2011-02-01)
parents 0e2c8b75f7d2
children 5748a27b388d
files xen/drivers/passthrough/vtd/quirks.c
line diff
     1.1 --- a/xen/drivers/passthrough/vtd/quirks.c	Tue Feb 01 19:07:07 2011 +0000
     1.2 +++ b/xen/drivers/passthrough/vtd/quirks.c	Tue Feb 01 19:10:56 2011 +0000
     1.3 @@ -352,6 +352,7 @@ void me_wifi_quirk(struct domain *domain
     1.4   */
     1.5  void pci_vtd_quirk(struct pci_dev *pdev)
     1.6  {
     1.7 +#ifdef CONFIG_X86_64
     1.8      int bus = pdev->bus;
     1.9      int dev = PCI_SLOT(pdev->devfn);
    1.10      int func = PCI_FUNC(pdev->devfn);
    1.11 @@ -363,4 +364,5 @@ void pci_vtd_quirk(struct pci_dev *pdev)
    1.12          val = pci_conf_read32(bus, dev, func, 0x1AC);
    1.13          pci_conf_write32(bus, dev, func, 0x1AC, val | (1 << 31));
    1.14      }
    1.15 +#endif
    1.16  }