vfio iommu: Add ioctl definition for dirty pages tracking
authorKirti Wankhede <kwankhede@nvidia.com>
Thu, 28 May 2020 20:30:50 +0000 (02:00 +0530)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 28 May 2020 21:53:24 +0000 (15:53 -0600)
commitb704fd14a06f678f080e44db28061f1bcb1f595c
treeaaacf254f9ed728d2a1500b9aed2d4259af4846f
parentcade075f265b25c3d6c13486e1bf0fbed9935a4a
vfio iommu: Add ioctl definition for dirty pages tracking

IOMMU container maintains a list of all pages pinned by vfio_pin_pages API.
All pages pinned by vendor driver through this API should be considered as
dirty during migration. When container consists of IOMMU capable device and
all pages are pinned and mapped, then all pages are marked dirty.
Added support to start/stop dirtied pages tracking and to get bitmap of all
dirtied pages for requested IO virtual address range.

Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com>
Reviewed-by: Neo Jia <cjia@nvidia.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Yan Zhao <yan.y.zhao@intel.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
include/uapi/linux/vfio.h