]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vfio/mlx5: Fix the report of dirty_bytes upon pre-copy
authorYishai Hadas <yishaih@nvidia.com>
Wed, 8 Mar 2023 15:57:23 +0000 (17:57 +0200)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 24 Mar 2023 14:25:32 +0000 (10:25 -0400)
commitabdfc082dc5a89e5ea614d625fa52e759699ee85
treeae539150e7ab0aae6b8ea335287807ea41bc6845
parent6c56afeb89d3fd01a259392315f88729dfa21d53
vfio/mlx5: Fix the report of dirty_bytes upon pre-copy

Fix the report of dirty_bytes upon pre-copy to include both the existing
data on the migration file and the device extra bytes.

This gives a better close estimation to what can be passed any more as
part of pre-copy.

Fixes: 0dce165b1adf ("vfio/mlx5: Introduce vfio precopy ioctl implementation")
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://lore.kernel.org/r/20230308155723.108218-1-yishaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/mlx5/main.c