Skip to content

Commit b0eed08

Browse files
Longfang LiuAlex Williamson
authored andcommitted
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: Longfang Liu <liulongfang@huawei.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com> Link: https://lore.kernel.org/r/20220308184902.2242-9-shameerali.kolothum.thodi@huawei.com Reviewed-by: Kevin Tian <kevin.tian@intel.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
1 parent 1e459b2 commit b0eed08

3 files changed

Lines changed: 1186 additions & 18 deletions

File tree

drivers/vfio/pci/hisilicon/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ config HISI_ACC_VFIO_PCI
33
tristate "VFIO PCI support for HiSilicon ACC devices"
44
depends on ARM64 || (COMPILE_TEST && 64BIT)
55
depends on VFIO_PCI_CORE
6+
depends on PCI_MSI
7+
depends on CRYPTO_DEV_HISI_QM
8+
depends on CRYPTO_DEV_HISI_HPRE
9+
depends on CRYPTO_DEV_HISI_SEC2
10+
depends on CRYPTO_DEV_HISI_ZIP
611
help
712
This provides generic PCI support for HiSilicon ACC devices
813
using the VFIO framework.

0 commit comments

Comments
 (0)