aboutsummaryrefslogtreecommitdiff
path: root/include/sysemu
diff options
context:
space:
mode:
authorJoao Martins <joao.m.martins@oracle.com>2024-07-22 22:13:23 +0100
committerCédric Le Goater <clg@redhat.com>2024-07-23 17:14:52 +0200
commit52ce88229c2d63a223f4c822240e84c3daeb7f6e (patch)
treed0b2a94ff5a7ba7099b18024580e8c7cf608597c /include/sysemu
parentdddfd8d6670d2d63b851b0c976c3ae08592f4339 (diff)
vfio/iommufd: Implement VFIOIOMMUClass::set_dirty_tracking support
ioctl(iommufd, IOMMU_HWPT_SET_DIRTY_TRACKING, arg) is the UAPI that enables or disables dirty page tracking. The ioctl is used if the hwpt has been created with dirty tracking supported domain (stored in hwpt::flags) and it is called on the whole list of iommu domains. Signed-off-by: Joao Martins <joao.m.martins@oracle.com> Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Reviewed-by: Eric Auger <eric.auger@redhat.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r--include/sysemu/iommufd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/iommufd.h b/include/sysemu/iommufd.h
index e917e7591d..6fb412f611 100644
--- a/include/sysemu/iommufd.h
+++ b/include/sysemu/iommufd.h
@@ -55,6 +55,8 @@ bool iommufd_backend_alloc_hwpt(IOMMUFDBackend *be, uint32_t dev_id,
uint32_t data_type, uint32_t data_len,
void *data_ptr, uint32_t *out_hwpt,
Error **errp);
+bool iommufd_backend_set_dirty_tracking(IOMMUFDBackend *be, uint32_t hwpt_id,
+ bool start, Error **errp);
#define TYPE_HOST_IOMMU_DEVICE_IOMMUFD TYPE_HOST_IOMMU_DEVICE "-iommufd"
#endif