Re: [RFC PATCH 4/4] iommu: make IOVA domain page size explicit

2014-11-26 Thread Robin Murphy
Hi, On 26/11/14 07:17, leizhen wrote: [...] diff --git a/drivers/iommu/iova.c b/drivers/iommu/iova.c index a3dbba8..9e50625 100644 --- a/drivers/iommu/iova.c +++ b/drivers/iommu/iova.c @@ -55,12 +55,16 @@ void free_iova_mem(struct iova *iova) } void -init_iova_domain(struct iova_domain

[RFC PATCH 4/4] iommu: make IOVA domain page size explicit

2014-11-25 Thread Robin Murphy
Systems may contain heterogeneous IOMMUs supporting differing minimum page sizes, which may also not be common with the CPU page size. Thus it is practical to have an explicit notion of IOVA granularity to simplify handling of mapping and allocation constraints. As an initial step, move the IOVA

Re: [RFC PATCH 4/4] iommu: make IOVA domain page size explicit

2014-11-25 Thread leizhen
On 2014/11/26 1:27, Robin Murphy wrote: Systems may contain heterogeneous IOMMUs supporting differing minimum page sizes, which may also not be common with the CPU page size. Thus it is practical to have an explicit notion of IOVA granularity to simplify handling of mapping and allocation