Merge tag 'for-joerg' of git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd...
authorJoerg Roedel <jroedel@suse.de>
Thu, 3 Nov 2022 14:51:48 +0000 (15:51 +0100)
committerJoerg Roedel <jroedel@suse.de>
Thu, 3 Nov 2022 14:51:48 +0000 (15:51 +0100)
commit69e61edebea030f177de7a23b8d5d9b8c4a90bda
tree9c7b6f8bdc58ae3850b5cfbe50797e2e0968efb2
parent757636ed2607a3269cd2764e3e4a0480384c6c26
parent04cee82e04d2aff3d177ef0021ecdff228daf7b8
Merge tag 'for-joerg' of git://git./linux/kernel/git/jgg/iommufd into core

iommu: Define EINVAL as device/domain incompatibility

This series is to replace the previous EMEDIUMTYPE patch in a VFIO series:
https://lore.kernel.org/kvm/Yxnt9uQTmbqul5lf@8bytes.org/

The purpose is to regulate all existing ->attach_dev callback functions to
use EINVAL exclusively for an incompatibility error between a device and a
domain. This allows VFIO and IOMMUFD to detect such a soft error, and then
try a different domain with the same device.

Among all the patches, the first two are preparatory changes. And then one
patch to update kdocs and another three patches for the enforcement
effort.

Link: https://lore.kernel.org/r/cover.1666042872.git.nicolinc@nvidia.com
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
drivers/iommu/intel/iommu.c
drivers/iommu/iommu.c
include/linux/iommu.h