Commit b0eed085 authored by Longfang Liu's avatar Longfang Liu Committed by Alex Williamson
Browse files

hisi_acc_vfio_pci: Add support for VFIO live migration



VMs assigned with HiSilicon ACC VF devices can now perform live migration
if the VF devices are bind to the hisi_acc_vfio_pci driver.

Just like ACC PF/VF drivers this VFIO driver also make use of the HiSilicon
QM interface. QM stands for Queue Management which is a generic IP used by
ACC devices. It provides a generic PCIe interface for the CPU and the ACC
devices to share a group of queues.

QM integrated into an accelerator provides queue management service.
Queues can be assigned to PF and VFs, and queues can be controlled by
unified mailboxes and doorbells.

The QM driver (drivers/crypto/hisilicon/qm.c) provides generic
interfaces to ACC drivers to manage the QM.

Signed-off-by: default avatarLongfang Liu <liulongfang@huawei.com>
Reviewed-by: default avatarJason Gunthorpe <jgg@nvidia.com>
Signed-off-by: default avatarShameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Link: https://lore.kernel.org/r/20220308184902.2242-9-shameerali.kolothum.thodi@huawei.com
Reviewed-by: default avatarKevin Tian <kevin.tian@intel.com>
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent 1e459b25
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3,6 +3,11 @@ config HISI_ACC_VFIO_PCI
	tristate "VFIO PCI support for HiSilicon ACC devices"
	depends on ARM64 || (COMPILE_TEST && 64BIT)
	depends on VFIO_PCI_CORE
	depends on PCI_MSI
	depends on CRYPTO_DEV_HISI_QM
	depends on CRYPTO_DEV_HISI_HPRE
	depends on CRYPTO_DEV_HISI_SEC2
	depends on CRYPTO_DEV_HISI_ZIP
	help
	  This provides generic PCI support for HiSilicon ACC devices
	  using the VFIO framework.