iommu/uapi: Rename uapi functions
authorJacob Pan <jacob.pan.linux@gmail.com>
Fri, 25 Sep 2020 16:32:45 +0000 (09:32 -0700)
committerJoerg Roedel <jroedel@suse.de>
Thu, 1 Oct 2020 12:52:46 +0000 (14:52 +0200)
commit23cc3493b5e107b8deb697cf3157a07276b5eff7
tree190141930a9a5447479ecade78e6406456d70523
parent8d3bb3b8cbf2ffb3ef73720a48b3445518dcdb55
iommu/uapi: Rename uapi functions

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.

We plan to have two flavors of the same API functions, one called
through ioctls, carrying a user pointer and one called directly with
valid IOMMU UAPI structs. To differentiate both, let's rename existing
functions with an iommu_uapi_ prefix.

Suggested-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Link: https://lore.kernel.org/r/1601051567-54787-5-git-send-email-jacob.jun.pan@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c
include/linux/iommu.h