Merge tag 'mlx5-lm-parallel' of https://git.kernel.org/pub/scm/linux/kernel/git/mella...
authorAlex Williamson <alex.williamson@redhat.com>
Wed, 11 May 2022 19:08:49 +0000 (13:08 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 11 May 2022 19:08:49 +0000 (13:08 -0600)
commit920df8d6ef122a4129960d410209ee92614667ca
treeb4e158d96df0c04af5e80d5f4db53c85c6c9a129
parentc5eb0a61238dd6faf37f58c9ce61c9980aaffd7a
parent85c205db605b2067dec5c72ff7efbbad899a608e
Merge tag 'mlx5-lm-parallel' of https://git./linux/kernel/git/mellanox/linux into v5.19/vfio/next

Improve mlx5 live migration driver

From Yishai:

This series improves mlx5 live migration driver in few aspects as of
below.

Refactor to enable running migration commands in parallel over the PF
command interface.

To achieve that we exposed from mlx5_core an API to let the VF be
notified before that the PF command interface goes down/up. (e.g. PF
reload upon health recovery).

Once having the above functionality in place mlx5 vfio doesn't need any
more to obtain the global PF lock upon using the command interface but
can rely on the above mechanism to be in sync with the PF.

This can enable parallel VFs migration over the PF command interface
from kernel driver point of view.

In addition,
Moved to use the PF async command mode for the SAVE state command.
This enables returning earlier to user space upon issuing successfully
the command and improve latency by let things run in parallel.

Alex, as this series touches mlx5_core we may need to send this in a
pull request format to VFIO to avoid conflicts before acceptance.

Link: https://lore.kernel.org/all/20220510090206.90374-1-yishaih@nvidia.com
Signed-of-by: Leon Romanovsky <leonro@nvidia.com>