The file migration is asynchronous, so it benefits from being done with a stopped VM. Allow the file migration to take benefit of the auto-pause capability.
Signed-off-by: Fabiano Rosas <faro...@suse.de> --- migration/migration.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/migration/migration.c b/migration/migration.c index 8b0c3b0911..692fbc5ad6 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -135,6 +135,10 @@ static bool migration_should_pause(const char *uri) * migration. */ + if (strstart(uri, "file:", NULL)) { + return true; + } + return false; } -- 2.35.3