vfio: factor out a vfio_iommu_driver_allowed helper
authorChristoph Hellwig <hch@lst.de>
Fri, 24 Sep 2021 15:56:52 +0000 (17:56 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 30 Sep 2021 18:46:43 +0000 (12:46 -0600)
commitb00621603d050f77a6af9e81e32daeccfd246d6a
tree17ce7d0bac8c4b603eb98577f5ec4cadd059b075
parent38a68934aa72459217986cf6b461d87f7602648a
vfio: factor out a vfio_iommu_driver_allowed helper

Factor out a little helper to make the checks for the noiommu driver less
ugly.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20210924155705.4258-3-hch@lst.de
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c