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)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:14:53 +0000 (11:14 -0700)
commitfd7eedeeebf2b958cc99cbf1be0825fc5b1c9001
treecbf14b4262a684ffc61ffb4eb8f1bfcc0ca4dece
parent02041d42382b3bfaaf695823c710e2f8766c0fdc
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