vfio: Remove iommu group notifier
authorLu Baolu <baolu.lu@linux.intel.com>
Mon, 18 Apr 2022 00:49:59 +0000 (08:49 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 28 Apr 2022 13:32:20 +0000 (15:32 +0200)
commit3b86f317c9c71c9fe17409db5743b6a27114f248
tree0979d71ec5aa08e2e19fa1fd6e0e8992227717bf
parent93219ea94388b5195d1eeadb0bda6ed1471fba56
vfio: Remove iommu group notifier

The iommu core and driver core have been enhanced to avoid unsafe driver
binding to a live group after iommu_group_set_dma_owner(PRIVATE_USER)
has been called. There's no need to register iommu group notifier. This
removes the iommu group notifer which contains BUG_ON() and WARN().

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Link: https://lore.kernel.org/r/20220418005000.897664-11-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/vfio/vfio.c