]> git.ipfire.org Git - thirdparty/linux.git/commit
hisi_acc_vfio_pci: fix the queue parameter anomaly issue
authorLongfang Liu <liulongfang@huawei.com>
Thu, 22 Jan 2026 02:02:05 +0000 (10:02 +0800)
committerAlex Williamson <alex@shazbot.org>
Thu, 29 Jan 2026 21:11:00 +0000 (14:11 -0700)
commitc3cbc276c2a33b04fc78a86cdb2ddce094cb3614
tree7db0953953b7f55d29a98904fb98ad692974511a
parent8c6ac1730a977234dff74cc1753b4a953f59be7b
hisi_acc_vfio_pci: fix the queue parameter anomaly issue

When the number of QPs initialized by the device, as read via vft, is zero,
it indicates either an abnormal device configuration or an abnormal read
result.
Returning 0 directly in this case would allow the live migration operation
to complete successfully, leading to incorrect parameter configuration after
migration and preventing the service from recovering normal functionality.
Therefore, in such situations, an error should be returned to roll back the
live migration operation.

Signed-off-by: Longfang Liu <liulongfang@huawei.com>
Link: https://lore.kernel.org/r/20260122020205.2884497-5-liulongfang@huawei.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c