]> www.infradead.org Git - users/jedix/linux-maple.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)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 19 May 2025 18:41:31 +0000 (12:41 -0600)
commit3495cec0787721ba7a9d5c19d0bbb66d182de584
tree452262287775961efc65a259a7f07c17c6dec5ca
parent8bb7170c5a055ea17c6857c256ee73c10ff872eb
hisi_acc_vfio_pci: add eq and aeq interruption restore

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>
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c