summary refs log tree commit diff stats
path: root/hw/core/vm-change-state-handler.c
diff options
context:
space:
mode:
authorAvihai Horon <avihaih@nvidia.com>2023-09-06 18:08:50 +0300
committerCédric Le Goater <clg@redhat.com>2023-09-11 08:34:06 +0200
commitf543aa222da183ac37424d1ea3a65e5fb6202732 (patch)
treedabaaaf2c56e1cc296967897687a68c9e65c420b /hw/core/vm-change-state-handler.c
parent8118349b1bc5c12e4017ddd7eb563fce752a5a9c (diff)
downloadfocaccia-qemu-f543aa222da183ac37424d1ea3a65e5fb6202732.tar.gz
focaccia-qemu-f543aa222da183ac37424d1ea3a65e5fb6202732.zip
migration: Move more initializations to migrate_init()
Initialization of mig_stats, compression_counters and VFIO bytes
transferred is hard-coded in migration code path and snapshot code path.

Make the code cleaner by initializing them in migrate_init().

Suggested-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/core/vm-change-state-handler.c')
0 files changed, 0 insertions, 0 deletions