]> git.baikalelectronics.ru Git - kernel.git/commit
vfio: Stop using iommu_present()
authorRobin Murphy <robin.murphy@arm.com>
Wed, 11 May 2022 19:12:58 +0000 (13:12 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 11 May 2022 19:12:58 +0000 (13:12 -0600)
commit2874aafc2b1ac9918f02aea50b079588a45c3d6f
treee50c94a9607c90e939cc09141ede20411865f609
parent924eeeef57925e40a38473fee9b03e0dd70024bf
vfio: Stop using iommu_present()

IOMMU groups have been mandatory for some time now, so a device without
one is necessarily a device without any usable IOMMU, therefore the
iommu_present() check is redundant (or at best unhelpful).

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/537103bbd7246574f37f2c88704d7824a3a889f2.1649160714.git.robin.murphy@arm.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c