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

vfio/type1: revert "implement notify callback"

This is dead code. Revert it.
commit 487ace134053 ("vfio/type1: implement 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-7-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
a5ac1f81 da4f1c2e

-15
-15
drivers/vfio/vfio_iommu_type1.c
··· 75 75 bool v2; 76 76 bool nesting; 77 77 bool dirty_page_tracking; 78 - bool container_open; 79 78 struct list_head emulated_iommu_groups; 80 79 }; 81 80 ··· 2561 2562 INIT_LIST_HEAD(&iommu->iova_list); 2562 2563 iommu->dma_list = RB_ROOT; 2563 2564 iommu->dma_avail = dma_entry_limit; 2564 - iommu->container_open = true; 2565 2565 mutex_init(&iommu->lock); 2566 2566 mutex_init(&iommu->device_list_lock); 2567 2567 INIT_LIST_HEAD(&iommu->device_list); ··· 3164 3166 return domain; 3165 3167 } 3166 3168 3167 - static void vfio_iommu_type1_notify(void *iommu_data, 3168 - enum vfio_iommu_notify_type event) 3169 - { 3170 - struct vfio_iommu *iommu = iommu_data; 3171 - 3172 - if (event != VFIO_IOMMU_CONTAINER_CLOSE) 3173 - return; 3174 - mutex_lock(&iommu->lock); 3175 - iommu->container_open = false; 3176 - mutex_unlock(&iommu->lock); 3177 - } 3178 - 3179 3169 static const struct vfio_iommu_driver_ops vfio_iommu_driver_ops_type1 = { 3180 3170 .name = "vfio-iommu-type1", 3181 3171 .owner = THIS_MODULE, ··· 3178 3192 .unregister_device = vfio_iommu_type1_unregister_device, 3179 3193 .dma_rw = vfio_iommu_type1_dma_rw, 3180 3194 .group_iommu_domain = vfio_iommu_type1_group_iommu_domain, 3181 - .notify = vfio_iommu_type1_notify, 3182 3195 }; 3183 3196 3184 3197 static int __init vfio_iommu_type1_init(void)