]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/iommufd: Implement VFIOIOMMUClass::set_dirty_tracking support
authorJoao Martins <joao.m.martins@oracle.com>
Mon, 22 Jul 2024 21:13:23 +0000 (22:13 +0100)
committerCédric Le Goater <clg@redhat.com>
Tue, 23 Jul 2024 15:14:52 +0000 (17:14 +0200)
commit52ce88229c2d63a223f4c822240e84c3daeb7f6e
treed0b2a94ff5a7ba7099b18024580e8c7cf608597c
parentdddfd8d6670d2d63b851b0c976c3ae08592f4339
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>
backends/iommufd.c
backends/trace-events
hw/vfio/iommufd.c
include/sysemu/iommufd.h