]> www.infradead.org Git - users/dwmw2/qemu.git/commit
vfio/iommufd: Implement VFIOIOMMUClass::query_dirty_bitmap support
authorJoao Martins <joao.m.martins@oracle.com>
Mon, 22 Jul 2024 21:13:24 +0000 (22:13 +0100)
committerCédric Le Goater <clg@redhat.com>
Tue, 23 Jul 2024 15:14:52 +0000 (17:14 +0200)
commit7c30710bd99510b1ce91a1b287118c759c55a495
treeb0ce83a3f484c6b1e17bf5d50ac4f6c6bd327951
parent52ce88229c2d63a223f4c822240e84c3daeb7f6e
vfio/iommufd: Implement VFIOIOMMUClass::query_dirty_bitmap support

ioctl(iommufd, IOMMU_HWPT_GET_DIRTY_BITMAP, arg) is the UAPI
that fetches the bitmap that tells what was dirty in an IOVA
range.

A single bitmap is allocated and used across all the hwpts
sharing an IOAS which is then used in log_sync() to set Qemu
global bitmaps.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
backends/iommufd.c
backends/trace-events
hw/vfio/iommufd.c
include/sysemu/iommufd.h