]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommufd: Deal with IOMMU_HWPT_FAULT_ID_VALID in iommufd core
authorYi Liu <yi.l.liu@intel.com>
Sat, 7 Dec 2024 12:01:08 +0000 (04:01 -0800)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 11 Dec 2024 19:46:14 +0000 (15:46 -0400)
commit11534b4de2a1bcc438ed90d031184c9c847e8560
treec46199daa941acaef6f989d4d95412c45a75573c
parentd61927d784e25c0ce5ab6015538e6a82f152c24e
iommufd: Deal with IOMMU_HWPT_FAULT_ID_VALID in iommufd core

IOMMU_HWPT_FAULT_ID_VALID is used to mark if the fault_id field of
iommu_hwp_alloc is valid or not. As the fault_id field is handled in
the iommufd core, so it makes sense to sanitize the
IOMMU_HWPT_FAULT_ID_VALID flag in the iommufd core, and mask it out
before passing the user flags to the iommu drivers.

Link: https://patch.msgid.link/r/20241207120108.5640-1-yi.l.liu@intel.com
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-iommufd.c
drivers/iommu/intel/iommu.c
drivers/iommu/iommufd/hw_pagetable.c
drivers/iommu/iommufd/selftest.c