mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
e5654d4fbf
commit
3890bbbfc3
1 file changed
+4
@@ -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 )
|
||||
|
||||