Re: [PATCH 1/2] iommu: Add config option to set passthrough as default

From: Joerg Roedel
Date: Fri Jul 20 2018 - 08:16:34 EST


Hi Olof,

On Wed, Jul 11, 2018 at 01:59:35PM -0700, Olof Johansson wrote:
> +config IOMMU_DEFAULT_PASSTHROUGH
> + bool "IOMMU passthrough by default"
> + depends on IOMMU_API
> + help
> + Enable passthrough by default (removing the need to pass in
> + iommu.passthrough=on through command line). If this is enabled,
> + you can still disable with iommu.passthrough=off
> +
> + If unsure, say N here.
> +

The patch is a good start, but the description above indicates that it
affects all IOMMU driver, which it does not. Please make the Intel and
AMD IOMMU drivers also take this option into account.


Joerg