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

2018-07-20 Thread Olof Johansson
On Fri, Jul 20, 2018 at 5:16 AM, Joerg Roedel wrote: > 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

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

2018-07-20 Thread Joerg Roedel
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 > +

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

2018-07-11 Thread Yang, Shunyong
Hi, Olof, Tired of changing command line. I like this patch. Thanks. Shunyong.  On Wed, 2018-07-11 at 13:59 -0700, Olof Johansson wrote: > This allows the default behavior to be controlled by a kernel config > option instead of changing the commandline for the kernel to include >

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

2018-07-11 Thread Olof Johansson
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" on machines where this is desired. Signed-off-by: Olof Johansson --- drivers/iommu/Kconfig | 10 ++ drivers/iommu/iommu.c | 4