vfio/mlx5: Create and destroy page tracker object
authorYishai Hadas <yishaih@nvidia.com>
Thu, 8 Sep 2022 18:34:45 +0000 (21:34 +0300)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 8 Sep 2022 18:59:01 +0000 (12:59 -0600)
commitc1d050b0d169fd60c8acef157db53bd4e3141799
treea856f16a5ecf578dbdb69495c928f07843a1d933
parent79c3cf279926f8db0a606a479944a131e27a39ea
vfio/mlx5: Create and destroy page tracker object

Add support for creating and destroying page tracker object.

This object is used to control/report the device dirty pages.

As part of creating the tracker need to consider the device capabilities
for max ranges and adapt/combine ranges accordingly.

Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://lore.kernel.org/r/20220908183448.195262-8-yishaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/mlx5/cmd.c
drivers/vfio/pci/mlx5/cmd.h