Comment 0 for bug 1688158

Revision history for this message
Manoj Iyer (manjo) wrote :

[Impact]
Have the SMMU come up in a passthrough configuration, and then allow subsequent translation for
things such as VFIO. Rather than do this in each SMMU driver, it's much cleaner to allow the default domain to be configured to be something other than DMA.

This patch series implements a command-line option to configure the default domain type. Currently, it supports "dma" and "identity" which is sufficient for the passthrough use-case.

[Fix]
The following patch series in linux-next adds this support to the kernel.
4a8d8a14c0d0 arm64: dma-mapping: Only swizzle DMA ops for IOMMU_DOMAIN_DMA
fccb4e3b8ab0 iommu: Allow default domain type to be set on the kernel command line
beb3c6a066bf iommu/arm-smmu-v3: Install bypass STEs for IOMMU_DOMAIN_IDENTITY domains
67560edcd8e5 iommu/arm-smmu-v3: Make arm_smmu_install_ste_for_dev return void
61bc671179f1 iommu/arm-smmu: Install bypass S2CRs for IOMMU_DOMAIN_IDENTITY domains
0834cc28fa56 iommu/arm-smmu: Restrict domain attributes to UNMANAGED domains