diff options
author | Juan Quintela <quintela@redhat.com> | 2021-11-02 16:43:52 +0100 |
---|---|---|
committer | Juan Quintela <quintela@trasno.org> | 2021-11-03 09:38:53 +0100 |
commit | 02abee3d5129e1430af35ba4a174980a5a22d64e (patch) | |
tree | 3f5ae0ae7b5c2acfcc0c7260767e4731cf9e5e66 | |
parent | fa0b31d585b66e0a9e6e9e72edf729ad2f10e6fd (diff) |
migration: Zero migration compression counters
Based on previous patch from yuxiating <yuxiating@huawei.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
-rw-r--r-- | migration/savevm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/migration/savevm.c b/migration/savevm.c index 7b7b64bd13..d59e976d50 100644 --- a/migration/savevm.c +++ b/migration/savevm.c @@ -1567,6 +1567,7 @@ static int qemu_savevm_state(QEMUFile *f, Error **errp) migrate_init(ms); memset(&ram_counters, 0, sizeof(ram_counters)); + memset(&compression_counters, 0, sizeof(compression_counters)); ms->to_dst_file = f; qemu_mutex_unlock_iothread(); |