Peter Xu <[email protected]> writes:

> Reduces duplication of the other path where we also send the same header.
>
> Signed-off-by: Peter Xu <[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();

Reviewed-by: Fabiano Rosas <[email protected]>

Reply via email to