vfio/spapr_tce: reject mediated devices
authorChristoph Hellwig <hch@lst.de>
Fri, 24 Sep 2021 15:57:02 +0000 (17:57 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 30 Sep 2021 18:46:44 +0000 (12:46 -0600)
commit898639041484003e219e35fd1623b4bb1f4c0d04
tree157443d977f5f9141a6f3404f353d46546bd04b6
parentc3c0fa9d94f7078b6664d29d79484d071a144f2e
vfio/spapr_tce: reject mediated devices

Unlike the the type1 IOMMU backend, the SPAPR one does not contain any
support for the magic non-IOMMU backed iommu_group used by mediated
devices, so reject them in ->attach_group.

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