vfio/mlx5: Implement vfio_pci driver for mlx5 devices
authorYishai Hadas <yishaih@nvidia.com>
Thu, 24 Feb 2022 14:20:22 +0000 (16:20 +0200)
committerLeon Romanovsky <leonro@nvidia.com>
Thu, 3 Mar 2022 11:01:19 +0000 (13:01 +0200)
commit6fadb021266d03c5fd7bca2cfa1607efd246dad1
treef29956cf271921a8f40ab83536d3dfe018e535a8
parentf1d98f346ee34ef41369ace9f91fc4f46a3e30cb
vfio/mlx5: Implement vfio_pci driver for mlx5 devices

This patch adds support for vfio_pci driver for mlx5 devices.

It uses vfio_pci_core to register to the VFIO subsystem and then
implements the mlx5 specific logic in the migration area.

The migration implementation follows the definition from uapi/vfio.h and
uses the mlx5 VF->PF command channel to achieve it.

This patch implements the suspend/resume flows.

Link: https://lore.kernel.org/all/20220224142024.147653-14-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>
MAINTAINERS
drivers/vfio/pci/Kconfig
drivers/vfio/pci/Makefile
drivers/vfio/pci/mlx5/Kconfig [new file with mode: 0644]
drivers/vfio/pci/mlx5/Makefile [new file with mode: 0644]
drivers/vfio/pci/mlx5/cmd.h
drivers/vfio/pci/mlx5/main.c [new file with mode: 0644]