vfio: revert "iommu driver notify callback"
authorSteve Sistare <steven.sistare@oracle.com>
Tue, 31 Jan 2023 16:58:09 +0000 (08:58 -0800)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 9 Feb 2023 18:39:14 +0000 (11:39 -0700)
Revert this dead code:
  commit ec5e32940cc9 ("vfio: iommu driver notify callback")

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/1675184289-267876-8-git-send-email-steven.sistare@oracle.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/container.c
drivers/vfio/vfio.h

index 5f398c493a1bfcd346a42b89cbf12feae71fd3f3..95fd51817f2b28775fd103d79fe0a83146e1d37b 100644 (file)
@@ -383,11 +383,6 @@ static int vfio_fops_open(struct inode *inode, struct file *filep)
 static int vfio_fops_release(struct inode *inode, struct file *filep)
 {
        struct vfio_container *container = filep->private_data;
-       struct vfio_iommu_driver *driver = container->iommu_driver;
-
-       if (driver && driver->ops->notify)
-               driver->ops->notify(container->iommu_data,
-                                   VFIO_IOMMU_CONTAINER_CLOSE);
 
        filep->private_data = NULL;
 
index f8219a438bfbf58d3f7c08e907a3dc4f660dfed5..d5fa896b5a8562d3da92bf5da68f9aa5774a9807 100644 (file)
@@ -89,11 +89,6 @@ int __init vfio_group_init(void);
 void vfio_group_cleanup(void);
 
 #if IS_ENABLED(CONFIG_VFIO_CONTAINER)
-/* events for the backend driver notify callback */
-enum vfio_iommu_notify_type {
-       VFIO_IOMMU_CONTAINER_CLOSE = 0,
-};
-
 /**
  * struct vfio_iommu_driver_ops - VFIO IOMMU driver callbacks
  */
@@ -124,8 +119,6 @@ struct vfio_iommu_driver_ops {
                                  void *data, size_t count, bool write);
        struct iommu_domain *(*group_iommu_domain)(void *iommu_data,
                                                   struct iommu_group *group);
-       void            (*notify)(void *iommu_data,
-                                 enum vfio_iommu_notify_type event);
 };
 
 struct vfio_iommu_driver {