Skip to content
Snippets Groups Projects
Commit 5485298c authored by Avihai Horon's avatar Avihai Horon Committed by Cédric Le Goater
Browse files

vfio/migration: Move from STOP_COPY to STOP in vfio_save_cleanup()


Changing the device state from STOP_COPY to STOP can take time as the
device may need to free resources and do other operations as part of the
transition. Currently, this is done in vfio_save_complete_precopy() and
therefore it is counted in the migration downtime.

To avoid this, change the device state from STOP_COPY to STOP in
vfio_save_cleanup(), which is called after migration has completed and
thus is not part of migration downtime.

Signed-off-by: default avatarAvihai Horon <avihaih@nvidia.com>
Tested-by: default avatarYangHang Liu <yanghliu@redhat.com>
Signed-off-by: default avatarCédric Le Goater <clg@redhat.com>
parent c5ea91da
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment