iommu: Add config option to set passthrough as default
authorOlof Johansson <olof@lixom.net>
Fri, 20 Jul 2018 18:02:23 +0000 (11:02 -0700)
committerJoerg Roedel <jroedel@suse.de>
Fri, 27 Jul 2018 07:36:50 +0000 (09:36 +0200)
commit58d1131777a4b7c228267b809bd88f7be66edcfb
tree915247adf72282f7594fb17bfcfef6307754a5cb
parentc52c72d3dee81af893cee0414444818ed91e2e11
iommu: Add config option to set passthrough as default

This allows the default behavior to be controlled by a kernel config
option instead of changing the commandline for the kernel to include
"iommu.passthrough=on" or "iommu=pt" on machines where this is desired.

Likewise, for machines where this config option is enabled, it can be
disabled at boot time with "iommu.passthrough=off" or "iommu=nopt".

Also corrected iommu=pt documentation for IA-64, since it has no code that
parses iommu= at all.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Documentation/admin-guide/kernel-parameters.txt
arch/x86/kernel/pci-dma.c
drivers/iommu/Kconfig
drivers/iommu/iommu.c