iommu/vt-d: Delegate the identity domain to upper layer
authorLu Baolu <baolu.lu@linux.intel.com>
Sat, 25 May 2019 05:41:27 +0000 (13:41 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 28 May 2019 08:19:08 +0000 (10:19 +0200)
commit4de354ec2f0c0529980ea4aa9fc4f35b296d3de8
tree57b7a363d284698afa2826188d8e1d9ddd6501bf
parentf273a453b740772beef4ccb7220cb930176ab38b
iommu/vt-d: Delegate the identity domain to upper layer

This allows the iommu generic layer to allocate an identity domain
and attach it to a device. Hence, the identity domain is delegated
to upper layer. As a side effect, iommu_identity_mapping can't be
used to check the existence of identity domains any more.

Signed-off-by: James Sewart <jamessewart@arista.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c