linux/drivers/iommu/amd
Yi Liu 2bdabb8e82 iommu: Pass in parent domain with user_data to domain_alloc_user op
domain_alloc_user op already accepts user flags for domain allocation, add
a parent domain pointer and a driver specific user data support as well.
The user data would be tagged with a type for iommu drivers to add their
own driver specific user data per hw_pagetable.

Add a struct iommu_user_data as a bundle of data_ptr/data_len/type from an
iommufd core uAPI structure. Make the user data opaque to the core, since
a userspace driver must match the kernel driver. In the future, if drivers
share some common parameter, there would be a generic parameter as well.

Link: https://lore.kernel.org/r/20231026043938.63898-7-yi.l.liu@intel.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Co-developed-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2023-10-26 11:15:57 -03:00
..
amd_iommu.h iommu/amd: Remove unused declarations 2023-08-17 12:58:24 +02:00
amd_iommu_types.h iommu/amd: Access/Dirty bit support in IOPTEs 2023-10-24 11:58:43 -03:00
debugfs.c
init.c iommu/amd: Enable PPR/GA interrupt after interrupt handler setup 2023-07-14 16:21:42 +02:00
io_pgtable.c iommu/amd: Access/Dirty bit support in IOPTEs 2023-10-24 11:58:43 -03:00
io_pgtable_v2.c iommu/amd: Update copyright notice 2023-05-22 17:20:50 +02:00
iommu.c iommu: Pass in parent domain with user_data to domain_alloc_user op 2023-10-26 11:15:57 -03:00
iommu_v2.c IOMMU Updates for Linux v6.6 2023-09-01 16:54:25 -07:00
Kconfig iommu/amd: Access/Dirty bit support in IOPTEs 2023-10-24 11:58:43 -03:00
Makefile iommu/amd: Initial support for AMD IOMMU v2 page table 2022-09-07 16:12:35 +02:00
quirks.c iommu/amd: Include PCI segment ID when initialize IOMMU 2022-07-07 09:37:51 +02:00