summaryrefslogtreecommitdiff
path: root/drivers/iommu/iommufd/iommufd_private.h
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@nvidia.com>2023-07-17 21:12:03 +0300
committerJason Gunthorpe <jgg@nvidia.com>2023-07-26 16:19:42 +0300
commit1d149ab2e0062a98b3676d6ee0aaa34be16f4d4f (patch)
tree1b3f7c1df82c4edd948ac2331bf6a683cb660f24 /drivers/iommu/iommufd/iommufd_private.h
parent269c5238c5b134ca8b18b98814b87ec995a59968 (diff)
downloadlinux-1d149ab2e0062a98b3676d6ee0aaa34be16f4d4f.tar.xz
iommufd: Make sw_msi_start a group global
The sw_msi_start is only set by the ARM drivers and it is always constant. Due to the way vfio/iommufd allow domains to be re-used between devices we have a built in assumption that there is only one value for sw_msi_start and it is global to the system. To make replace simpler where we may not reparse the iommu_get_resv_regions() move the sw_msi_start to the iommufd_group so it is always available once any HWPT has been attached. Link: https://lore.kernel.org/r/7-v8-6659224517ea+532-iommufd_alloc_jgg@nvidia.com Reviewed-by: Kevin Tian <kevin.tian@intel.com> Tested-by: Nicolin Chen <nicolinc@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/iommu/iommufd/iommufd_private.h')
-rw-r--r--drivers/iommu/iommufd/iommufd_private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/iommufd/iommufd_private.h b/drivers/iommu/iommufd/iommufd_private.h
index 206c0212ebfd..6e11d6ef71ee 100644
--- a/drivers/iommu/iommufd/iommufd_private.h
+++ b/drivers/iommu/iommufd/iommufd_private.h
@@ -267,6 +267,7 @@ struct iommufd_group {
struct iommu_group *group;
struct iommufd_hw_pagetable *hwpt;
struct list_head device_list;
+ phys_addr_t sw_msi_start;
};
/*