Skip to content

Commit fcb2f2e

Browse files
Yishai Hadasawilliam
authored andcommitted
vfio/mlx5: Activate the chunk mode functionality
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>
1 parent a899cac commit fcb2f2e

File tree

1 file changed

+3
-0
lines changed
  • drivers/vfio/pci/mlx5

1 file changed

+3
-0
lines changed

drivers/vfio/pci/mlx5/cmd.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@ void mlx5vf_cmd_set_migratable(struct mlx5vf_pci_core_device *mvdev,
261261
mvdev->core_device.vdev.migration_flags |=
262262
VFIO_MIGRATION_PRE_COPY;
263263

264+
if (MLX5_CAP_GEN_2(mvdev->mdev, migration_in_chunks))
265+
mvdev->chunk_mode = 1;
266+
264267
end:
265268
mlx5_vf_put_core_dev(mvdev->mdev);
266269
}

0 commit comments

Comments
 (0)