ia64/xen-unstable

changeset 19828:180ae4bca33e

VT-d: don't disable VT-d engine in suspend for security purpose

force_iommu option is used to force enabling and using IOMMU for
security purpose. So when force_iommu is set, it shouldn't disable
VT-d engines in suspend.

Signed-off-by: Weidong Han <weidong.han@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jun 24 11:15:31 2009 +0100 (2009-06-24)
parents 84932aa99aae
children e6c7d6398d38
files xen/drivers/passthrough/vtd/iommu.c
line diff
     1.1 --- a/xen/drivers/passthrough/vtd/iommu.c	Wed Jun 24 11:14:32 2009 +0100
     1.2 +++ b/xen/drivers/passthrough/vtd/iommu.c	Wed Jun 24 11:15:31 2009 +0100
     1.3 @@ -1877,6 +1877,10 @@ void iommu_suspend(void)
     1.4          iommu_state[i][DMAR_FEUADDR_REG] =
     1.5              (u32) dmar_readl(iommu->reg, DMAR_FEUADDR_REG);
     1.6  
     1.7 +        /* don't disable VT-d engine when force_iommu is set. */
     1.8 +        if ( force_iommu )
     1.9 +            continue;
    1.10 +
    1.11          iommu_disable_translation(iommu);
    1.12  
    1.13          if ( iommu_intremap )