Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vfio: revert "iommu driver notify callback"

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>

authored by

Steve Sistare and committed by
Alex Williamson
e592296c a5ac1f81

-12
-5
drivers/vfio/container.c
··· 383 383 static int vfio_fops_release(struct inode *inode, struct file *filep) 384 384 { 385 385 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); 391 386 392 387 filep->private_data = NULL; 393 388
-7
drivers/vfio/vfio.h
··· 89 89 void vfio_group_cleanup(void); 90 90 91 91 #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 - 97 92 /** 98 93 * struct vfio_iommu_driver_ops - VFIO IOMMU driver callbacks 99 94 */ ··· 119 124 void *data, size_t count, bool write); 120 125 struct iommu_domain *(*group_iommu_domain)(void *iommu_data, 121 126 struct iommu_group *group); 122 - void (*notify)(void *iommu_data, 123 - enum vfio_iommu_notify_type event); 124 127 }; 125 128 126 129 struct vfio_iommu_driver {