]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - drivers/vfio/vfio_iommu_type1.c
vfio iommu type1: WARN_ON if notifier block is not unregistered
authorKirti Wankhede <kwankhede@nvidia.com>
Mon, 5 Dec 2016 21:08:20 +0000 (02:38 +0530)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 5 Dec 2016 23:04:33 +0000 (16:04 -0700)
commit3cedd7d75f9ac397d20efa80a3d5f74bb52befcd
tree99bf6b5b1b8250cd7637fe65a68407086d0ff92a
parent2fc1bec15883537cf8b35fd628cca33ca25736a5
vfio iommu type1: WARN_ON if notifier block is not unregistered

mdev vendor driver should unregister the iommu notifier since the vfio
iommu can persist beyond the attachment of the mdev group. WARN_ON will
show warning if vendor driver doesn't unregister the notifier and is
forced to follow the implementations steps.

Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com>
Signed-off-by: Neo Jia <cjia@nvidia.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_iommu_type1.c