linux/drivers/vfio/pci/mlx5
Yishai Hadas 56f9017757 vfio/mlx5: Add REINIT support to VFIO_MIG_GET_PRECOPY_INFO
When userspace opts into VFIO_DEVICE_FEATURE_MIG_PRECOPY_INFOv2, the
driver may report the VFIO_PRECOPY_INFO_REINIT output flag in response
to the VFIO_MIG_GET_PRECOPY_INFO ioctl, along with a new initial_bytes
value.

The presence of the VFIO_PRECOPY_INFO_REINIT flag indicates to the
caller that new initial data is available in the migration stream.

If the firmware reports a new initial-data chunk, any previously dirty
bytes in memory are treated as initial bytes, since the caller must read
both sets before reaching the end of the initial-data region.

In this case, the driver issues a new SAVE command to fetch the data and
prepare it for a subsequent read() from userspace.

Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://lore.kernel.org/r/20260317161753.18964-7-yishaih@nvidia.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
2026-03-19 12:32:10 -06:00
..
cmd.c vfio/mlx5: Add REINIT support to VFIO_MIG_GET_PRECOPY_INFO 2026-03-19 12:32:10 -06:00
cmd.h vfio/mlx5: Add REINIT support to VFIO_MIG_GET_PRECOPY_INFO 2026-03-19 12:32:10 -06:00
Kconfig vfio: Move iova_bitmap into iommufd 2023-10-24 11:58:42 -03:00
main.c vfio/mlx5: Add REINIT support to VFIO_MIG_GET_PRECOPY_INFO 2026-03-19 12:32:10 -06:00
Makefile