Re: [RFC 12/20] iommu/iommufd: Add IOMMU_CHECK_EXTENSION

2021-09-22 Thread Jason Gunthorpe via iommu
On Wed, Sep 22, 2021 at 03:41:50AM +, Tian, Kevin wrote: > > From: Jason Gunthorpe > > Sent: Wednesday, September 22, 2021 1:47 AM > > > > On Sun, Sep 19, 2021 at 02:38:40PM +0800, Liu Yi L wrote: > > > As aforementioned, userspace should check extension for what formats > > > can be specifie

RE: [RFC 12/20] iommu/iommufd: Add IOMMU_CHECK_EXTENSION

2021-09-21 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Wednesday, September 22, 2021 1:47 AM > > On Sun, Sep 19, 2021 at 02:38:40PM +0800, Liu Yi L wrote: > > As aforementioned, userspace should check extension for what formats > > can be specified when allocating an IOASID. This patch adds such > > interface for users

Re: [RFC 12/20] iommu/iommufd: Add IOMMU_CHECK_EXTENSION

2021-09-21 Thread Jason Gunthorpe via iommu
On Sun, Sep 19, 2021 at 02:38:40PM +0800, Liu Yi L wrote: > As aforementioned, userspace should check extension for what formats > can be specified when allocating an IOASID. This patch adds such > interface for userspace. In this RFC, iommufd reports EXT_MAP_TYPE1V2 > support and no no-snoop suppo

[RFC 12/20] iommu/iommufd: Add IOMMU_CHECK_EXTENSION

2021-09-18 Thread Liu Yi L
As aforementioned, userspace should check extension for what formats can be specified when allocating an IOASID. This patch adds such interface for userspace. In this RFC, iommufd reports EXT_MAP_TYPE1V2 support and no no-snoop support yet. Signed-off-by: Liu Yi L --- drivers/iommu/iommufd/iommu