Skip to content

Commit f2240b4

Browse files
shamiali2008Alex Williamson
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 <shameerali.kolothum.thodi@huawei.com> Link: https://lore.kernel.org/r/20221123113236.896-5-shameerali.kolothum.thodi@huawei.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
1 parent 190125a commit f2240b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)