This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [xen-unstable] VT-d: don't disable VT-d engine in suspen

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] VT-d: don't disable VT-d engine in suspend for security purpose
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 26 Jun 2009 08:56:47 -0700
Delivery-date: Fri, 26 Jun 2009 09:07:22 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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;
         if ( iommu_intremap )

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] VT-d: don't disable VT-d engine in suspend for security purpose, Xen patchbot-unstable <=