• R
    iommu: Make IOVA domain page size explicit · 0fb5fe87
    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 page granularity from an implicit
    compile-time constant to a per-domain property so we can make use
    of it in IOVA domain context at runtime. To keep the abstraction tidy,
    extend the little API of inline iova_* helpers to parallel some of the
    equivalent PAGE_* macros.
    Signed-off-by: NRobin Murphy <robin.murphy@arm.com>
    Signed-off-by: NJoerg Roedel <jroedel@suse.de>
    0fb5fe87
intel-iommu.c 118.8 KB