Skip to content

Commit e592296

Browse files
Steve SistareAlex Williamson
authored andcommitted
vfio: revert "iommu driver notify callback"
Revert this dead code: commit ec5e329 ("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>
1 parent a5ac1f8 commit e592296

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

drivers/vfio/container.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,6 @@ static int vfio_fops_open(struct inode *inode, struct file *filep)
383383
static int vfio_fops_release(struct inode *inode, struct file *filep)
384384
{
385385
struct vfio_container *container = filep->private_data;
386-
struct vfio_iommu_driver *driver = container->iommu_driver;
387-
388-
if (driver && driver->ops->notify)
389-
driver->ops->notify(container->iommu_data,
390-
VFIO_IOMMU_CONTAINER_CLOSE);
391386

392387
filep->private_data = NULL;
393388

drivers/vfio/vfio.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,6 @@ int __init vfio_group_init(void);
8989
void vfio_group_cleanup(void);
9090

9191
#if IS_ENABLED(CONFIG_VFIO_CONTAINER)
92-
/* events for the backend driver notify callback */
93-
enum vfio_iommu_notify_type {
94-
VFIO_IOMMU_CONTAINER_CLOSE = 0,
95-
};
96-
9792
/**
9893
* struct vfio_iommu_driver_ops - VFIO IOMMU driver callbacks
9994
*/
@@ -124,8 +119,6 @@ struct vfio_iommu_driver_ops {
124119
void *data, size_t count, bool write);
125120
struct iommu_domain *(*group_iommu_domain)(void *iommu_data,
126121
struct iommu_group *group);
127-
void (*notify)(void *iommu_data,
128-
enum vfio_iommu_notify_type event);
129122
};
130123

131124
struct vfio_iommu_driver {

0 commit comments

Comments
 (0)