summaryrefslogtreecommitdiffstats
path: root/drivers/vfio/pci/mlx5/Makefile
diff options
context:
space:
mode:
authorYishai Hadas <yishaih@nvidia.com>2022-12-06 09:34:31 +0100
committerAlex Williamson <alex.williamson@redhat.com>2022-12-06 20:36:44 +0100
commitc668878381b5702f867ec7f43ee3b74259c6ea03 (patch)
tree71b382858601122426603b63115209f4069870d0 /drivers/vfio/pci/mlx5/Makefile
parentvfio/mlx5: Refactor migration file state (diff)
downloadlinux-c668878381b5702f867ec7f43ee3b74259c6ea03.tar.xz
linux-c668878381b5702f867ec7f43ee3b74259c6ea03.zip
vfio/mlx5: Refactor to use queue based data chunks
Refactor to use queue based data chunks on the migration file. The SAVE command adds a chunk to the tail of the queue while the read() API finds the required chunk and returns its data. In case the queue is empty but the state of the migration file is MLX5_MIGF_STATE_COMPLETE, read() may not be blocked but will return 0 to indicate end of file. This is a step towards maintaining multiple images and their meta data (i.e. headers) on the migration file as part of next patches from the series. Note: At that point, we still use a single chunk on the migration file but becomes ready to support multiple. Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Link: https://lore.kernel.org/r/20221206083438.37807-8-yishaih@nvidia.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/pci/mlx5/Makefile')
0 files changed, 0 insertions, 0 deletions