debuggers.hg

changeset 22837:1637fdbfc21e

[VTD][QUIRK] turn off Sandybridge IGD quirk by default

Turn off Sandybridge IGD quirk by default until potential issues such
as MMIO register conflict with OS device driver and proper locking in
preamble and postamble functions are addressed.

Signed-off-by: Allen Kay <allen.m.kay@intel.com>
author Keir Fraser <keir@xen.org>
date Fri Jan 21 16:01:12 2011 +0000 (2011-01-21)
parents 43592043cefc
children ca64bd257a6f
files xen/drivers/passthrough/vtd/quirks.c
line diff
     1.1 --- a/xen/drivers/passthrough/vtd/quirks.c	Fri Jan 21 16:00:05 2011 +0000
     1.2 +++ b/xen/drivers/passthrough/vtd/quirks.c	Fri Jan 21 16:01:12 2011 +0000
     1.3 @@ -217,10 +217,15 @@ static void snb_vtd_ops_postamble(struct
     1.4  /*
     1.5   * call before VT-d translation enable and IOTLB flush operations.
     1.6   */
     1.7 +
     1.8 +static int snb_igd_quirk;
     1.9 +boolean_param("snb_igd_quirk", snb_igd_quirk);
    1.10 +
    1.11  void vtd_ops_preamble_quirk(struct iommu* iommu)
    1.12  {
    1.13      cantiga_vtd_ops_preamble(iommu);
    1.14 -    snb_vtd_ops_preamble(iommu);
    1.15 +    if ( snb_igd_quirk )
    1.16 +        snb_vtd_ops_preamble(iommu);
    1.17  }
    1.18  
    1.19  /*
    1.20 @@ -228,7 +233,8 @@ void vtd_ops_preamble_quirk(struct iommu
    1.21   */
    1.22  void vtd_ops_postamble_quirk(struct iommu* iommu)
    1.23  {
    1.24 -    snb_vtd_ops_postamble(iommu);
    1.25 +    if ( snb_igd_quirk )
    1.26 +        snb_vtd_ops_postamble(iommu);
    1.27  }
    1.28  
    1.29  /* initialize platform identification flags */