Re: [PATCH 18/23] iommu: Express DMA strictness via the domain type

2021-07-26 Thread Robin Murphy
On 2021-07-26 13:29, Lu Baolu wrote: [...] diff --git a/drivers/iommu/dma-iommu.c b/drivers/iommu/dma-iommu.c index b1af1ff324c5..a114a7ad88ec 100644 --- a/drivers/iommu/dma-iommu.c +++ b/drivers/iommu/dma-iommu.c @@ -363,13 +363,15 @@ static int iommu_dma_init_domain(struct iommu_domain

Re: [PATCH 18/23] iommu: Express DMA strictness via the domain type

2021-07-26 Thread Lu Baolu
On 2021/7/26 16:27, Robin Murphy wrote: On 2021-07-24 06:29, Lu Baolu wrote: Hi Robin, On 2021/7/22 2:20, Robin Murphy wrote: Eliminate the iommu_get_dma_strict() indirection and pipe the information through the domain type from the beginning. Besides the flow simplification this also has

Re: [PATCH 18/23] iommu: Express DMA strictness via the domain type

2021-07-26 Thread Lu Baolu
On 2021/7/26 16:27, Robin Murphy wrote: On 2021-07-24 06:29, Lu Baolu wrote: Hi Robin, On 2021/7/22 2:20, Robin Murphy wrote: Eliminate the iommu_get_dma_strict() indirection and pipe the information through the domain type from the beginning. Besides the flow simplification this also has

Re: [PATCH 18/23] iommu: Express DMA strictness via the domain type

2021-07-26 Thread Robin Murphy
On 2021-07-24 06:29, Lu Baolu wrote: Hi Robin, On 2021/7/22 2:20, Robin Murphy wrote: Eliminate the iommu_get_dma_strict() indirection and pipe the information through the domain type from the beginning. Besides the flow simplification this also has several nice side-effects:   -

Re: [PATCH 18/23] iommu: Express DMA strictness via the domain type

2021-07-23 Thread Lu Baolu
Hi Robin, On 2021/7/22 2:20, Robin Murphy wrote: Eliminate the iommu_get_dma_strict() indirection and pipe the information through the domain type from the beginning. Besides the flow simplification this also has several nice side-effects: - Automatically implies strict mode for untrusted

[PATCH 18/23] iommu: Express DMA strictness via the domain type

2021-07-21 Thread Robin Murphy
Eliminate the iommu_get_dma_strict() indirection and pipe the information through the domain type from the beginning. Besides the flow simplification this also has several nice side-effects: - Automatically implies strict mode for untrusted devices by virtue of their IOMMU_DOMAIN_DMA