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

This allows the iommu generic layer to allocate a dma domain and
attach it to a device through the iommu api's. With all types of
domains being delegated to upper layer, we can remove an internal
flag which was used to distinguish domains mananged internally or
externally.

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