aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorLu Baolu <[email protected]>2022-04-18 08:49:57 +0800
committerJoerg Roedel <[email protected]>2022-04-28 15:32:20 +0200
commit31076af0cb001f698138c8158c798ec9f4a8bbae (patch)
tree2c5cd6ae8938204d7e3bb5eeef6d3fedf79ac662 /include/linux/fpga/fpga-mgr.h
parent70693f470848f05fae04144675e6e41b105d45fe (diff)
vfio: Remove use of vfio_group_viable()
As DMA ownership is claimed for the iommu group when a VFIO group is added to a VFIO container, the VFIO group viability is guaranteed as long as group->container_users > 0. Remove those unnecessary group viability checks which are only hit when group->container_users is not zero. The only remaining reference is in GROUP_GET_STATUS, which could be called at any time when group fd is valid. Here we just replace the vfio_group_viable() by directly calling IOMMU core to get viability status. Signed-off-by: Lu Baolu <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Acked-by: Alex Williamson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions