projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a899cac
)
vfio/mlx5: Activate the chunk mode functionality
author
Yishai Hadas
<yishaih@nvidia.com>
Mon, 11 Sep 2023 09:38:56 +0000
(12:38 +0300)
committer
Alex Williamson
<alex.williamson@redhat.com>
Thu, 28 Sep 2023 19:07:29 +0000
(13:07 -0600)
Now that all pieces are in place, activate the chunk mode functionality
based on device capabilities.
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link:
https://lore.kernel.org/r/20230911093856.81910-10-yishaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/mlx5/cmd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/vfio/pci/mlx5/cmd.c
b/drivers/vfio/pci/mlx5/cmd.c
index e68bf9ba53002c51d4145ce648ac4d790e43ebf1..efd1d252cdc95d6fef8b7fd25c4682205ac80a71 100644
(file)
--- a/
drivers/vfio/pci/mlx5/cmd.c
+++ b/
drivers/vfio/pci/mlx5/cmd.c
@@
-261,6
+261,9
@@
void mlx5vf_cmd_set_migratable(struct mlx5vf_pci_core_device *mvdev,
mvdev->core_device.vdev.migration_flags |=
VFIO_MIGRATION_PRE_COPY;
+ if (MLX5_CAP_GEN_2(mvdev->mdev, migration_in_chunks))
+ mvdev->chunk_mode = 1;
+
end:
mlx5_vf_put_core_dev(mvdev->mdev);
}