Re: [PATCH 02/15] iommu: Introduce iommu domain types

2015-01-30 Thread Joerg Roedel
Hi Will, On Wed, Jan 28, 2015 at 02:19:34PM +, Will Deacon wrote: +/* This are the possible domain-types */ +enum iommu_domain_type { + IOMMU_DOMAIN_DMA, /* Domain used for DMA-API */ + IOMMU_DOMAIN_IDENTITY, /* Identity mapped domain */ What happens if somebody calls

[PATCH 02/15] iommu: Introduce iommu domain types

2015-01-26 Thread Joerg Roedel
From: Joerg Roedel jroe...@suse.de This allows to handle domains differently based on their type in the future. An IOMMU driver can implement certain optimizations for DMA-API domains for example. Signed-off-by: Joerg Roedel jroe...@suse.de --- drivers/iommu/iommu.c | 5 +++--