mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
migration/savevm: flush file for iterable_only case
It would be proper to flush file even for iterable_only case. Signed-off-by: Wei Yang <richardw.yang@linux.intel.com> Message-Id: <20190709140924.13291-2-richardw.yang@linux.intel.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
committed by
Dr. David Alan Gilbert
parent
8996604fe6
commit
4e455d51ef
+2
-1
@@ -1292,7 +1292,7 @@ int qemu_savevm_state_complete_precopy(QEMUFile *f, bool iterable_only,
|
||||
}
|
||||
|
||||
if (iterable_only) {
|
||||
return 0;
|
||||
goto flush;
|
||||
}
|
||||
|
||||
vmdesc = qjson_new();
|
||||
@@ -1353,6 +1353,7 @@ int qemu_savevm_state_complete_precopy(QEMUFile *f, bool iterable_only,
|
||||
}
|
||||
qjson_destroy(vmdesc);
|
||||
|
||||
flush:
|
||||
qemu_fflush(f);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user