[PATCH v7 3/7] iommu/uapi: Introduce enum type for PASID data format

2020-07-29 Thread Jacob Pan
There can be multiple vendor-specific PASID data formats used in UAPI structures. This patch adds enum type with a last entry which makes range checking much easier. Suggested-by: Alex Williamson Signed-off-by: Jacob Pan --- include/uapi/linux/iommu.h | 8 ++-- 1 file changed, 6 insertions(

Re: [PATCH v7 3/7] iommu/uapi: Introduce enum type for PASID data format

2020-08-13 Thread Auger Eric
Hi Jacob, On 7/30/20 2:21 AM, Jacob Pan wrote: > There can be multiple vendor-specific PASID data formats used in UAPI > structures. This patch adds enum type with a last entry which makes > range checking much easier. > > Suggested-by: Alex Williamson > Signed-off-by: Jacob Pan > --- > includ