summary refs log tree commit diff stats
path: root/backends/trace-events
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 /backends/trace-events
parentdddfd8d6670d2d63b851b0c976c3ae08592f4339 (diff)
downloadfocaccia-qemu-52ce88229c2d63a223f4c822240e84c3daeb7f6e.tar.gz
focaccia-qemu-52ce88229c2d63a223f4c822240e84c3daeb7f6e.zip
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 'backends/trace-events')
-rw-r--r--backends/trace-events1
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/trace-events b/backends/trace-events
index 4d8ac02fe7..28aca3b859 100644
--- a/backends/trace-events
+++ b/backends/trace-events
@@ -16,3 +16,4 @@ iommufd_backend_unmap_dma(int iommufd, uint32_t ioas, uint64_t iova, uint64_t si
 iommufd_backend_alloc_ioas(int iommufd, uint32_t ioas) " iommufd=%d ioas=%d"
 iommufd_backend_alloc_hwpt(int iommufd, uint32_t dev_id, uint32_t pt_id, uint32_t flags, uint32_t hwpt_type, uint32_t len, uint64_t data_ptr, uint32_t out_hwpt_id, int ret) " iommufd=%d dev_id=%u pt_id=%u flags=0x%x hwpt_type=%u len=%u data_ptr=0x%"PRIx64" out_hwpt=%u (%d)"
 iommufd_backend_free_id(int iommufd, uint32_t id, int ret) " iommufd=%d id=%d (%d)"
+iommufd_backend_set_dirty(int iommufd, uint32_t hwpt_id, bool start, int ret) " iommufd=%d hwpt=%u enable=%d (%d)"