vfio/mlx5: Refactor to enable VFs migration in parallel
authorYishai Hadas <yishaih@nvidia.com>
Tue, 10 May 2022 09:02:05 +0000 (12:02 +0300)
committerLeon Romanovsky <leonro@nvidia.com>
Wed, 11 May 2022 06:33:33 +0000 (09:33 +0300)
commit8580ad14f9396b03c4b9645b4cf0dd0085664562
tree3640a091d957b126fc8957d2e3a883b26a6d96a3
parent61a2f1460fd03285ea34c1a235f2f50f71e13a1f
vfio/mlx5: Refactor to enable VFs migration in parallel

Refactor to enable different VFs to run their commands over the PF
command interface in parallel and to not block one each other.

This is done by not using the global PF lock that was used before but
relying on the VF attach/detach mechanism to sync.

Link: https://lore.kernel.org/r/20220510090206.90374-4-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