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>
This commit is contained in:
Keir Fraser committed 2009-06-24 11:15:31 +01:00
1 parent e5654d4fbf
commit 3890bbbfc3
1 file changed
+4
+4
View File
@@ -1877,6 +1877,10 @@ void iommu_suspend(void)
iommu_state[i][DMAR_FEUADDR_REG] =
(u32) dmar_readl(iommu->reg, DMAR_FEUADDR_REG);
/* don't disable VT-d engine when force_iommu is set. */
if ( force_iommu )
continue;
iommu_disable_translation(iommu);
if ( iommu_intremap )
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.