[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] iommu: clear the iommu_* variables to 0 when iommu is not enabled.
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |