iommu/arm-smmu: put iommu_domain pointer in dev->archdata.iommu
authorWill Deacon <will.deacon@arm.com>
Thu, 17 Jul 2014 10:23:51 +0000 (11:23 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 16 Sep 2014 18:14:37 +0000 (19:14 +0100)
commit844e35bdfe834fccb5def1bc4cd614ca22409d0c
tree773c0e21dfdac718fb5a3720742a3cffd1fd5b55
parent8f68f8e28298abdf518648e794c71e534eb8841c
iommu/arm-smmu: put iommu_domain pointer in dev->archdata.iommu

In preparation for nested translation support, stick a pointer to the
iommu_domain in dev->archdata.iommu. This makes it much easier to grab
hold of the physical group configuration (e.g. cbndx) when dealing with
vSMMU accesses from a guest.

Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu.c