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)
commit61a2f1460fd03285ea34c1a235f2f50f71e13a1f
treefad4ac37792f37e344f8de653510d0de06583c0e
parent846e437387e74c44ddc9f3eeec472fd37ca3cdb9
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