[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] VT-d: don't disable VT-d engine in suspend for security purpose



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1245838531 -3600
# Node ID 180ae4bca33ed286cf63fa7b3c253558a1ba1031
# Parent  84932aa99aae05162e2658d2cf902afc41f5bdc6
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@xxxxxxxxx>
---
 xen/drivers/passthrough/vtd/iommu.c |    4 ++++
 1 files changed, 4 insertions(+)

diff -r 84932aa99aae -r 180ae4bca33e xen/drivers/passthrough/vtd/iommu.c
--- a/xen/drivers/passthrough/vtd/iommu.c       Wed Jun 24 11:14:32 2009 +0100
+++ b/xen/drivers/passthrough/vtd/iommu.c       Wed Jun 24 11:15:31 2009 +0100
@@ -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 )

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.