vfio/mlx5: Expose migration commands over mlx5 device
authorYishai Hadas <yishaih@nvidia.com>
Thu, 24 Feb 2022 14:20:21 +0000 (16:20 +0200)
committerLeon Romanovsky <leonro@nvidia.com>
Thu, 3 Mar 2022 11:01:19 +0000 (13:01 +0200)
commitf1d98f346ee34ef41369ace9f91fc4f46a3e30cb
treee02c90d2614e421d84a503e940f110a1759c6c06
parent0f3f9cd7f752f6e685e378620babc5e34af6fb9f
vfio/mlx5: Expose migration commands over mlx5 device

Expose migration commands over the device, it includes: suspend, resume,
get vhca id, query/save/load state.

As part of this adds the APIs and data structure that are needed to manage
the migration data.

Link: https://lore.kernel.org/all/20220224142024.147653-13-yishaih@nvidia.com
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/vfio/pci/mlx5/cmd.c [new file with mode: 0644]
drivers/vfio/pci/mlx5/cmd.h [new file with mode: 0644]