]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaf14f5f173ddedcffda4b09a63118d69df04caf9
tree3640a091d957b126fc8957d2e3a883b26a6d96a3
parent27ceb111fd5271cdee1581f9255f51cc0cd386aa
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