]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/mlx5: Report dirty pages from tracker
authorYishai Hadas <yishaih@nvidia.com>
Thu, 8 Sep 2022 18:34:46 +0000 (21:34 +0300)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 8 Sep 2022 18:59:01 +0000 (12:59 -0600)
commit5318383d1226e0e2abaa401d9c026fea202cd916
tree05363007bf3197ad54d2acb01161994f5c572b37
parentd9e130a5ee5950adffe71075787e3797be7d38e7
vfio/mlx5: Report dirty pages from tracker

Report dirty pages from tracker.

It includes:
Querying for dirty pages in a given IOVA range, this is done by
modifying the tracker into the reporting state and supplying the
required range.

Using the CQ event completion mechanism to be notified once data is
ready on the CQ/QP to be processed.

Once data is available turn on the corresponding bits in the bit map.

This functionality will be used as part of the 'log_read_and_clear'
driver callback in the next patches.

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