vfio/mlx5: Run the SAVE state command in an async mode
authorYishai Hadas <yishaih@nvidia.com>
Tue, 10 May 2022 09:02:06 +0000 (12:02 +0300)
committerLeon Romanovsky <leonro@nvidia.com>
Wed, 11 May 2022 06:33:40 +0000 (09:33 +0300)
commit85c205db605b2067dec5c72ff7efbbad899a608e
treed0b3e876ab9514e5cd0783385f1eda9b7da9f1b1
parent8580ad14f9396b03c4b9645b4cf0dd0085664562
vfio/mlx5: Run the SAVE state command in an async mode

Use the PF asynchronous 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.

Link: https://lore.kernel.org/r/20220510090206.90374-5-yishaih@nvidia.com
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/vfio/pci/mlx5/cmd.c
drivers/vfio/pci/mlx5/cmd.h
drivers/vfio/pci/mlx5/main.c