vfio/mlx5: Block incremental query upon migf state error
authorYishai Hadas <yishaih@nvidia.com>
Mon, 5 Feb 2024 12:48:27 +0000 (14:48 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 22 Feb 2024 19:17:32 +0000 (12:17 -0700)
commitd8d577b5fa2a8832f5730ac26e905d8ac131882d
tree6183f8500bec4b359160309fd8af8583de2da8ca
parent793d4bfa3103a238c6e48eb13c38fa31acd18b94
vfio/mlx5: Block incremental query upon migf state error

Block incremental query which is state-dependent once the migration file
was previously marked with state error.

This may prevent redundant calls to firmware upon PRE_COPY which will
end-up with a failure and a syndrome printed in dmesg.

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-5-yishaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/mlx5/cmd.c