]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hisi_acc_vfio_pci: resolve duplicate migration states
authorLongfang Liu <liulongfang@huawei.com>
Thu, 22 Jan 2026 02:02:04 +0000 (10:02 +0800)
committerSasha Levin <sashal@kernel.org>
Wed, 4 Mar 2026 12:20:34 +0000 (07:20 -0500)
commit33f06d8be65454516c480adfa07b69cb1c24927c
tree70a98b5eace7c245090ac66ce27349c25bfe26ae
parent941270962861a2af4f2de6623e7bc04c6d99cdf1
hisi_acc_vfio_pci: resolve duplicate migration states

[ Upstream commit 8c6ac1730a977234dff74cc1753b4a953f59be7b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c