vfio/mlx5: Let firmware knows upon leaving PRE_COPY back to RUNNING
authorYishai Hadas <yishaih@nvidia.com>
Mon, 5 Feb 2024 12:48:28 +0000 (14:48 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 22 Feb 2024 19:17:32 +0000 (12:17 -0700)
commit6de042240b0f654940c196a491c90e81257e49b9
tree645c13dac411960323899f18aa1799c16416db0d
parentd8d577b5fa2a8832f5730ac26e905d8ac131882d
vfio/mlx5: Let firmware knows upon leaving PRE_COPY back to RUNNING

Let firmware knows upon leaving PRE_COPY back to RUNNING as of some
error in the target/migration cancellation.

This will let firmware cleaning its internal resources that were turned
on upon PRE_COPY.

The flow is based on the device specification in this area.

Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Leon Romanovsky <leon@kernel.org>
Link: https://lore.kernel.org/r/20240205124828.232701-6-yishaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/mlx5/cmd.c
drivers/vfio/pci/mlx5/cmd.h
drivers/vfio/pci/mlx5/main.c