iommu/vt-d: Use iommu_sva_alloc(free)_pasid() helpers
authorLu Baolu <baolu.lu@linux.intel.com>
Thu, 10 Jun 2021 02:00:59 +0000 (10:00 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 10 Jun 2021 07:06:12 +0000 (09:06 +0200)
commit40483774141625b9685b177fb6e1f36de48d33f8
tree6aef6901a74faf955723b3b2397216af4f87e242
parent100b8a14a37074796a467d6a9147317538ee70cf
iommu/vt-d: Use iommu_sva_alloc(free)_pasid() helpers

Align the pasid alloc/free code with the generic helpers defined in the
iommu core. This also refactored the SVA binding code to improve the
readability.

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-8-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/Kconfig
drivers/iommu/intel/iommu.c
drivers/iommu/intel/svm.c
include/linux/intel-iommu.h