> From: Liu, Yi L <yi.l.liu@xxxxxxxxx> > Sent: Thursday, December 21, 2023 11:40 PM > > From: Nicolin Chen <nicolinc@xxxxxxxxxx> > > Wrap up the data pointer/num sanity and __iommu_copy_struct_from_user > call for iommu drivers to copy driver specific data at a specific location > in the struct iommu_user_data_array, and > iommu_respond_struct_to_user_array() > to copy response to a specific location in the struct iommu_user_data_array. > > And expect it to be used in cache_invalidate_user ops for example. > > Signed-off-by: Nicolin Chen <nicolinc@xxxxxxxxxx> > Co-developed-by: Yi Liu <yi.l.liu@xxxxxxxxx> > Signed-off-by: Yi Liu <yi.l.liu@xxxxxxxxx> Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>