Re: [PATCH v6 3/6] iommu: Add iommu_copy_struct_from_user_array helper

2024-01-08 Thread Binbin Wu
On 11/17/2023 9:07 PM, Yi Liu wrote: + +/** + * iommu_copy_struct_from_user_array - Copy iommu driver specific user space + * data from an iommu_user_data_array + * @kdst: Pointer to an iommu driver specific user data that is defined in + *include/ua

RE: [PATCH v6 3/6] iommu: Add iommu_copy_struct_from_user_array helper

2023-11-20 Thread Tian, Kevin
> From: Nicolin Chen > Sent: Tuesday, November 21, 2023 1:25 AM > > On Mon, Nov 20, 2023 at 08:17:47AM +, Tian, Kevin wrote: > > > From: Liu, Yi L > > > Sent: Friday, November 17, 2023 9:07 PM > > > > > > +/** > > > + * __iommu_copy_struct_from_user_array - Copy iommu driver specific > > > >

Re: [PATCH v6 3/6] iommu: Add iommu_copy_struct_from_user_array helper

2023-11-20 Thread Nicolin Chen
On Mon, Nov 20, 2023 at 08:17:47AM +, Tian, Kevin wrote: > > From: Liu, Yi L > > Sent: Friday, November 17, 2023 9:07 PM > > > > +/** > > + * __iommu_copy_struct_from_user_array - Copy iommu driver specific > > __iommu_copy_entry_from_user_array? I think "struct" and "entry" are interchangea

RE: [PATCH v6 3/6] iommu: Add iommu_copy_struct_from_user_array helper

2023-11-20 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Friday, November 17, 2023 9:07 PM > > +/** > + * __iommu_copy_struct_from_user_array - Copy iommu driver specific __iommu_copy_entry_from_user_array?

[PATCH v6 3/6] iommu: Add iommu_copy_struct_from_user_array helper

2023-11-17 Thread Yi Liu
From: Nicolin Chen Wrap up the data type/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 expect it to be used in cache_invalidate_user ops for example. Signed-off-by: Nicolin