debuggers.hg
changeset 21071:5b8e012641e2
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@intel.com>
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@intel.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Thu Mar 11 08:09:58 2010 +0000 (2010-03-11) |
parents | d3720d951173 |
children | 099aac2cfab6 |
files | xen/drivers/passthrough/iommu.c |
line diff
1.1 --- a/xen/drivers/passthrough/iommu.c Thu Mar 11 08:09:37 2010 +0000 1.2 +++ b/xen/drivers/passthrough/iommu.c Thu Mar 11 08:09:58 2010 +0000 1.3 @@ -288,7 +288,12 @@ int iommu_setup(void) 1.4 panic("IOMMU setup failed, crash Xen for security purpose!\n"); 1.5 1.6 if ( !iommu_enabled ) 1.7 + { 1.8 iommu_pv_enabled = 0; 1.9 + iommu_snoop = 0; 1.10 + iommu_qinval = 0; 1.11 + iommu_intremap = 0; 1.12 + } 1.13 printk("I/O virtualisation %sabled\n", iommu_enabled ? "en" : "dis"); 1.14 if ( iommu_enabled ) 1.15 printk("I/O virtualisation for PV guests %sabled\n",