]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hisi_acc_vfio_pci: add eq and aeq interruption restore
authorLongfang Liu <liulongfang@huawei.com>
Sat, 10 May 2025 08:11:51 +0000 (16:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:11 +0000 (11:07 +0100)
commitd22c9f0c06cb8a3757877f7944f8d3ed5c8aeb47
treec34dc6acd05f498bde372ef26d5aa76019cd12f1
parent809a9c10274e1bcf6d05f1c0341459a425a4f05f
hisi_acc_vfio_pci: add eq and aeq interruption restore

[ Upstream commit 3495cec0787721ba7a9d5c19d0bbb66d182de584 ]

In order to ensure that the task packets of the accelerator
device are not lost during the migration process, it is necessary
to send an EQ and AEQ command to the device after the live migration
is completed and to update the completion position of the task queue.

Let the device recheck the completed tasks data and if there are
uncollected packets, device resend a task completion interrupt
to the software.

Fixes: b0eed085903e ("hisi_acc_vfio_pci: Add support for VFIO live migration")
Signed-off-by: Longfang Liu <liulongfang@huawei.com>
Reviewed-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Link: https://lore.kernel.org/r/20250510081155.55840-3-liulongfang@huawei.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c