Skip to content

Commit f2240b4

Browse files
shamiali2008awilliam
authored andcommitted
hisi_acc_vfio_pci: Enable PRE_COPY flag
Now that we have everything to support the PRE_COPY state, enable it. Signed-off-by: Shameer Kolothum <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alex Williamson <[email protected]>
1 parent 190125a commit f2240b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,7 @@ static int hisi_acc_vfio_pci_migrn_init_dev(struct vfio_device *core_vdev)
13511351
hisi_acc_vdev->vf_dev = pdev;
13521352
mutex_init(&hisi_acc_vdev->state_mutex);
13531353

1354-
core_vdev->migration_flags = VFIO_MIGRATION_STOP_COPY;
1354+
core_vdev->migration_flags = VFIO_MIGRATION_STOP_COPY | VFIO_MIGRATION_PRE_COPY;
13551355
core_vdev->mig_ops = &hisi_acc_vfio_pci_migrn_state_ops;
13561356

13571357
return vfio_pci_core_init_dev(core_vdev);

0 commit comments

Comments
 (0)