]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hisi_acc_vfio_pci: fix VF reset timeout issue
authorWeili Qian <qianweili@huawei.com>
Thu, 22 Jan 2026 02:02:02 +0000 (10:02 +0800)
committerAlex Williamson <alex@shazbot.org>
Thu, 29 Jan 2026 21:11:00 +0000 (14:11 -0700)
commita22099ed7936f8e8dabbdbadd97d56047797116b
tree2d703cef34eda8a9ba3aeea6b39874776d1f4f87
parent962ae6892d8bd208b2d1e2b358f07551ddc8d32f
hisi_acc_vfio_pci: fix VF reset timeout issue

If device error occurs during live migration, qemu will
reset the VF. At this time, VF reset and device reset are performed
simultaneously. The VF reset will timeout. Therefore, the QM_RESETTING
flag is used to ensure that VF reset and device reset are performed
serially.

Fixes: b0eed085903e ("hisi_acc_vfio_pci: Add support for VFIO live migration")
Signed-off-by: Weili Qian <qianweili@huawei.com>
Link: https://lore.kernel.org/r/20260122020205.2884497-2-liulongfang@huawei.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.h