diff options
| author | Alex Williamson <alex.williamson@redhat.com> | 2021-02-02 09:17:48 -0700 |
|---|---|---|
| committer | Alex Williamson <alex.williamson@redhat.com> | 2021-02-02 09:17:48 -0700 |
| commit | 76adb20f924f8d27ed50d02cd29cadedb59fd88f (patch) | |
| tree | 90838d7747333619c7836252b37147b104d5b689 /include/linux | |
| parent | 7e31d6dc2c78b2a0ba0039ca97ca98a581e8db82 (diff) | |
| parent | 898b9eaeb3fe5eb1ac510f2c4775c8277206752c (diff) | |
Merge branch 'v5.12/vfio/next-vaddr' into v5.12/vfio/next
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/vfio.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/vfio.h b/include/linux/vfio.h index f45940b38a02..b7e18bde5aa8 100644 --- a/include/linux/vfio.h +++ b/include/linux/vfio.h @@ -57,6 +57,11 @@ extern struct vfio_device *vfio_device_get_from_dev(struct device *dev); extern void vfio_device_put(struct vfio_device *device); extern void *vfio_device_data(struct vfio_device *device); +/* 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 */ @@ -92,6 +97,8 @@ 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); }; extern int vfio_register_iommu_driver(const struct vfio_iommu_driver_ops *ops); |
