iommu/vt-d: Add pasid private data helpers
authorLu Baolu <baolu.lu@linux.intel.com>
Thu, 10 Jun 2021 02:00:58 +0000 (10:00 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 10 Jun 2021 07:06:12 +0000 (09:06 +0200)
commit100b8a14a37074796a467d6a9147317538ee70cf
treed6b35be36f161b900c61edb41ec764bf1f737a16
parent521f546b4e4cedfbfbb5787f940a592dd20dd1f2
iommu/vt-d: Add pasid private data helpers

We are about to use iommu_sva_alloc/free_pasid() helpers in iommu core.
That means the pasid life cycle will be managed by iommu core. Use a
local array to save the per pasid private data instead of attaching it
the real pasid.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210520031531.712333-1-baolu.lu@linux.intel.com
Link: https://lore.kernel.org/r/20210610020115.1637656-7-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/svm.c