OSDN Git Service

iommu: Introduce domain_alloc and domain_free iommu_ops
authorJoerg Roedel <jroedel@suse.de>
Thu, 26 Mar 2015 12:43:04 +0000 (13:43 +0100)
committerJoerg Roedel <jroedel@suse.de>
Tue, 31 Mar 2015 13:31:23 +0000 (15:31 +0200)
commit938c470976192590b4adc921b2e10fa31237eddc
tree783d60eb23be6d6e0ec88c95c5eb32b5fdf81ad4
parente42391cd048809d903291d07f86ed3934ce138e9
iommu: Introduce domain_alloc and domain_free iommu_ops

These new call-backs defer the allocation and destruction of
'struct iommu_domain' to the iommu driver. This allows
drivers to embed this struct into their private domain
structures and to get rid of the domain_init and
domain_destroy call-backs when all drivers have been
converted.

Tested-by: Thierry Reding <treding@nvidia.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c
include/linux/iommu.h