iommu/vt-d: Aux-domain specific domain attach/detach
authorLu Baolu <baolu.lu@linux.intel.com>
Mon, 25 Mar 2019 01:30:32 +0000 (09:30 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 11 Apr 2019 15:15:48 +0000 (17:15 +0200)
commit67b8e02b5e76159a4f94f85bee370af1d9f442f9
tree724afa192d654b7fb0acc37ca6b677423317a53d
parent8cc3759a6c4931fca2ad9c1b0ead24dc0c30041c
iommu/vt-d: Aux-domain specific domain attach/detach

When multiple domains per device has been enabled by the
device driver, the device will tag the default PASID for
the domain to all DMA traffics out of the subset of this
device; and the IOMMU should translate the DMA requests
in PASID granularity.

This adds the intel_iommu_aux_attach/detach_device() ops
to support managing PASID granular translation structures
when the device driver has enabled multiple domains per
device.

Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Sanjay Kumar <sanjay.k.kumar@intel.com>
Signed-off-by: Liu Yi L <yi.l.liu@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c
include/linux/intel-iommu.h