Re: [PATCH v3 3/5] iommu/uapi: Use named union for user data

2020-06-24 Thread Jacob Pan
On Wed, 24 Jun 2020 14:29:57 +0800 Lu Baolu wrote: > > case IOMMU_CACHE_INV_TYPE_IOTLB: > > /* HW will ignore LSB bits based on > > address mask */ if (inv_info->granularity == IOMMU_INV_GRANU_ADDR && > > size && > > -

Re: [PATCH v3 3/5] iommu/uapi: Use named union for user data

2020-06-23 Thread Lu Baolu
Hi Jacob, On 2020/6/24 1:03, Jacob Pan wrote: IOMMU UAPI data size is filled by the user space which must be validated by ther kernel. To ensure backward compatibility, user data can only be extended by either re-purpose padding bytes or extend the variable sized union at the end. No size change