From: Peter Xu <[email protected]> Reduces duplication of the other path where we also send the same header.
Reviewed-by: Fabiano Rosas <[email protected]> Signed-off-by: Peter Xu <[email protected]> Tested-by: Lukas Straub <[email protected]> Link: https://lore.kernel.org/qemu-devel/[email protected] Signed-off-by: Fabiano Rosas <[email protected]> --- migration/savevm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/migration/savevm.c b/migration/savevm.c index e26656cca3..64bf445c98 100644 --- a/migration/savevm.c +++ b/migration/savevm.c @@ -1872,8 +1872,7 @@ int qemu_save_device_state(QEMUFile *f) SaveStateEntry *se; if (!migration_in_colo_state()) { - qemu_put_be32(f, QEMU_VM_FILE_MAGIC); - qemu_put_be32(f, QEMU_VM_FILE_VERSION); + qemu_savevm_send_header(f); } cpu_synchronize_all_states(); -- 2.51.0
