Skip to content

Commit 8c6ac17

Browse files
Longfang Liuawilliam
authored andcommitted
hisi_acc_vfio_pci: resolve duplicate migration states
In special scenarios involving duplicate migrations, after the first migration is completed, if the original VF device is used again and then migrated to another destination, the state indicating data migration completion for the VF device is not reset. This results in the second migration to the destination being skipped without performing data migration. After the modification, it ensures that a complete data migration is performed after the subsequent migration. Signed-off-by: Longfang Liu <liulongfang@huawei.com> Link: https://lore.kernel.org/r/20260122020205.2884497-4-liulongfang@huawei.com Signed-off-by: Alex Williamson <alex@shazbot.org>
1 parent 8be14dd commit 8c6ac17

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,6 +1569,7 @@ static int hisi_acc_vfio_pci_open_device(struct vfio_device *core_vdev)
15691569
}
15701570
hisi_acc_vdev->mig_state = VFIO_DEVICE_STATE_RUNNING;
15711571
hisi_acc_vdev->dev_opened = true;
1572+
hisi_acc_vdev->match_done = 0;
15721573
mutex_unlock(&hisi_acc_vdev->open_mutex);
15731574
}
15741575

0 commit comments

Comments
 (0)