]> git.itanic.dy.fi Git - linux-stable/commit
vfio/mlx5: Check whether VF is migratable
authorShay Drory <shayd@nvidia.com>
Tue, 24 Jan 2023 14:49:53 +0000 (16:49 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 30 Jan 2023 19:16:15 +0000 (12:16 -0700)
commitcaf094b5a156272708b46f423833392af464b664
tree59b03f6aa482f6e61ab71bd0f7aab7a72aa10575
parente951eaaf839921165b0622bc5338c7bf24131812
vfio/mlx5: Check whether VF is migratable

Add a check whether VF is migratable. Only if VF is migratable, mark the
VFIO device as migration capable.

Signed-off-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://lore.kernel.org/r/20230124144955.139901-2-yishaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/mlx5/cmd.c
drivers/vfio/pci/mlx5/cmd.h