mm: Add structure to keep sva information
authorTina Zhang <tina.zhang@intel.com>
Fri, 27 Oct 2023 00:05:23 +0000 (08:05 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 12 Dec 2023 09:11:30 +0000 (10:11 +0100)
commit541a3e257d48c16b77d19f39ed939ef5832046df
treeb2c8e79a1b47012bec4ef940931a68748eb7927e
parent2396046d75d3c0b2cfead852a77efd023f8539dc
mm: Add structure to keep sva information

Introduce iommu_mm_data structure to keep sva information (pasid and the
related sva domains). Add iommu_mm pointer, pointing to an instance of
iommu_mm_data structure, to mm.

Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20231027000525.1278806-5-tina.zhang@intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
include/linux/iommu.h
include/linux/mm_types.h