]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/mlx5: Manage the VF attach/detach callback from the PF
authorYishai Hadas <yishaih@nvidia.com>
Tue, 10 May 2022 09:02:04 +0000 (12:02 +0300)
committerLeon Romanovsky <leonro@nvidia.com>
Wed, 11 May 2022 06:33:22 +0000 (09:33 +0300)
commit27ceb111fd5271cdee1581f9255f51cc0cd386aa
treefad4ac37792f37e344f8de653510d0de06583c0e
parent160c627663d84cdb04644e909f0ed16db3b1cbac
vfio/mlx5: Manage the VF attach/detach callback from the PF

Manage the VF attach/detach callback from the PF.

This lets the driver to enable parallel VFs migration as will be
introduced in the next patch.

As part of this, reorganize the VF is migratable code to be in a
separate function and rename it to be set_migratable() to match its
functionality.

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