Skip to content
/ linux Public

Commit d163375

Browse files
Longfang LiuSasha Levin
authored andcommitted
hisi_acc_vfio_pci: update status after RAS error
[ Upstream commit 8be14dd ] After a RAS error occurs on the accelerator device, the accelerator device will be reset. The live migration state will be abnormal after reset, and the original state needs to be restored during the reset process. Therefore, reset processing needs to be performed in a live migration scenario. Signed-off-by: Longfang Liu <liulongfang@huawei.com> Link: https://lore.kernel.org/r/20260122020205.2884497-3-liulongfang@huawei.com Signed-off-by: Alex Williamson <alex@shazbot.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 559e227 commit d163375

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,8 +1152,7 @@ static void hisi_acc_vf_pci_aer_reset_done(struct pci_dev *pdev)
11521152
{
11531153
struct hisi_acc_vf_core_device *hisi_acc_vdev = hisi_acc_drvdata(pdev);
11541154

1155-
if (hisi_acc_vdev->core_device.vdev.migration_flags !=
1156-
VFIO_MIGRATION_STOP_COPY)
1155+
if (!hisi_acc_vdev->core_device.vdev.mig_ops)
11571156
return;
11581157

11591158
/*

0 commit comments

Comments
 (0)