vfio: clean up the check for mediated device in vfio_iommu_type1
authorChristoph Hellwig <hch@lst.de>
Fri, 24 Sep 2021 15:57:01 +0000 (17:57 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 30 Sep 2021 18:46:44 +0000 (12:46 -0600)
commitc3c0fa9d94f7078b6664d29d79484d071a144f2e
tree30e9089670973348a96dc8968eef50d73e51fa69
parentfda49d97f2c4faf0b42e8796d3e6c868d992f3af
vfio: clean up the check for mediated device in vfio_iommu_type1

Pass the group flags to ->attach_group and remove the messy check for
the bus type.

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-12-hch@lst.de
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c
drivers/vfio/vfio.h
drivers/vfio/vfio_iommu_spapr_tce.c
drivers/vfio/vfio_iommu_type1.c