Re: [PATCH v7 5/7] iommu/uapi: Rename uapi functions

2020-08-17 Thread Jacob Pan
On Thu, 13 Aug 2020 10:58:53 +0200 Auger Eric wrote: > Hi Jacob, > > On 7/30/20 2:21 AM, Jacob Pan wrote: > > User APIs such as iommu_sva_unbind_gpasid() may also be used by the > > kernel. Since we introduced user pointer to the UAPI functions, > Practically this is done in the next patch. Wh

Re: [PATCH v7 5/7] iommu/uapi: Rename uapi functions

2020-08-13 Thread Auger Eric
Hi Jacob, On 7/30/20 2:21 AM, Jacob Pan wrote: > User APIs such as iommu_sva_unbind_gpasid() may also be used by the > kernel. Since we introduced user pointer to the UAPI functions, Practically this is done in the next patch. What about something like: We plan to have two flavors of the same API

[PATCH v7 5/7] iommu/uapi: Rename uapi functions

2020-07-29 Thread Jacob Pan
User APIs such as iommu_sva_unbind_gpasid() may also be used by the kernel. Since we introduced user pointer to the UAPI functions, in-kernel callers cannot share the same APIs. In-kernel callers are also trusted, there is no need to validate the data. This patch renames all UAPI functions with io