WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] iommu: clear the iommu_* variables to 0 w

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] iommu: clear the iommu_* variables to 0 when iommu is not enabled.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 11 Mar 2010 00:15:14 -0800
Delivery-date: Thu, 11 Mar 2010 00:15:36 -0800
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 1268294998 0
# Node ID 5b8e012641e21b3f62350b707fe1e52557f17829
# Parent  d3720d9511739fc009aad2076e77e9437c175d07
iommu: clear the iommu_* variables to 0 when iommu is not enabled.

With "iommu=0" xen parameter, the 3 iommu_* variables are still left
to the default value 1 -- this is misleading...

Signed-off-by: Dexuan Cui <dexuan.cui@xxxxxxxxx>
---
 xen/drivers/passthrough/iommu.c |    5 +++++
 1 files changed, 5 insertions(+)

diff -r d3720d951173 -r 5b8e012641e2 xen/drivers/passthrough/iommu.c
--- a/xen/drivers/passthrough/iommu.c   Thu Mar 11 08:09:37 2010 +0000
+++ b/xen/drivers/passthrough/iommu.c   Thu Mar 11 08:09:58 2010 +0000
@@ -288,7 +288,12 @@ int iommu_setup(void)
         panic("IOMMU setup failed, crash Xen for security purpose!\n");
 
     if ( !iommu_enabled )
+    {
         iommu_pv_enabled = 0;
+        iommu_snoop = 0;
+        iommu_qinval = 0;
+        iommu_intremap = 0;
+    }
     printk("I/O virtualisation %sabled\n", iommu_enabled ? "en" : "dis");
     if ( iommu_enabled )
         printk("I/O virtualisation for PV guests %sabled\n",

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] iommu: clear the iommu_* variables to 0 when iommu is not enabled., Xen patchbot-unstable <=