]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
ts-kernel-build: Enable x86 IOMMU options
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 21 Apr 2015 15:28:37 +0000 (16:28 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Sat, 2 May 2015 09:00:59 +0000 (10:00 +0100)
This has a variety of beneficial implications:

 * The kernel becomes more like the kind of distro kernels that Xen
   users are probably using.

 * We are more likely to discover any bugs in Linux where Linux
   running under Xen (eg as dom0) fights with Xen for control of io
   mediation resources or otherwise mishandles the situation.

 * A pleasant side effect is that in a kernel which does not yet have
   "config: Enable NEED_DMA_MAP_STATE when SWIOTLB is selected"
   (a bugfix), enabling INTEL_IOMMU has the side effect of enabling
   NEED_DMA_MAP_STATE and thus working around the bug.

The list of options to enable was derived by eyeballing
drivers/iommu/Kconfig from 3.14.34.

I will leave the question of whether to enable any ARM IOMMU options
for the Xen ARM folks to consider.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
CC: Boris Ostrovsky <boris.ostrovsky@oracle.com>
CC: David Vrabel <david.vrabel@citrix.com>
CC: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
ts-kernel-build

index 6cd7b5d673f0ba555ad631de5f3d85e900c3bcf0..324bd55c43d4855e04274c744794b1ffd89a2a0c 100755 (executable)
@@ -288,6 +288,12 @@ setopt CONFIG_DEVTMPFS y
 
 setopt CONFIG_HYPERVISOR_GUEST y
 
+setopt CONFIG_AMD_IOMMU y
+setopt CONFIG_AMD_IOMMU_V2 y
+setopt CONFIG_INTEL_IOMMU y
+setopt CONFIG_INTEL_IOMMU_DEFAULT_ON y
+setopt CONFIG_IRQ_REMAP y
+
 $config_hardware
 $config_features
 $config_runvars