vfio iommu: Add migration capability to report supported features
authorKirti Wankhede <kwankhede@nvidia.com>
Thu, 28 May 2020 20:30:53 +0000 (02:00 +0530)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 28 May 2020 21:53:27 +0000 (15:53 -0600)
commitad721705d09c62f0d108a6b4f59867ebfd592c90
treec45eb704dfd41afa87660600bcb246f4bca3c267
parent331e33d2960c8292bad8b02578fcfac18f721517
vfio iommu: Add migration capability to report supported features

Added migration capability in IOMMU info chain.
User application should check IOMMU info chain for migration capability
to use dirty page tracking feature provided by kernel module.
User application must check page sizes supported and maximum dirty
bitmap size returned by this capability structure for ioctls used to get
dirty bitmap.

Signed-off-by: Kirti Wankhede <kwankhede@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>
drivers/vfio/vfio_iommu_type1.c
include/uapi/linux/vfio.h