iommu/vt-d: Allocate and free pasid table
authorLu Baolu <baolu.lu@linux.intel.com>
Sat, 14 Jul 2018 07:47:00 +0000 (15:47 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 20 Jul 2018 12:44:25 +0000 (14:44 +0200)
commita7fc93fed94b173e2f9815d50f4024161b0a39ae
tree212a2223687735a6042d01bb2dd104cd705aeeba
parentcc580e41260dbf1a46269235f1f2b572137d9d03
iommu/vt-d: Allocate and free pasid table

This patch allocates a PASID table for a PCI device at the time
when the dmar dev_info is attached to dev->archdata.iommu, and
free it in the opposite case.

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