linux-stable/drivers/vfio/pci/mlx5
Yishai Hadas 4e016f9695 vfio: Add an option to get migration data size
Add an option to get migration data size by introducing a new migration
feature named VFIO_DEVICE_FEATURE_MIG_DATA_SIZE.

Upon VFIO_DEVICE_FEATURE_GET the estimated data length that will be
required to complete STOP_COPY is returned.

This option may better enable user space to consider before moving to
STOP_COPY whether it can meet the downtime SLA based on the returned
data.

The patch also includes the implementation for mlx5 and hisi for this
new option to make it feature complete for the existing drivers in this
area.

Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Longfang Liu <liulongfang@huawei.com>
Link: https://lore.kernel.org/r/20221106174630.25909-2-yishaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2022-11-14 11:37:07 -07:00
..
cmd.c vfio/mlx5: Set the driver DMA logging callbacks 2022-09-08 12:59:01 -06:00
cmd.h vfio/mlx5: Set the driver DMA logging callbacks 2022-09-08 12:59:01 -06:00
Kconfig
main.c vfio: Add an option to get migration data size 2022-11-14 11:37:07 -07:00
Makefile