From e3bf5e68e2a97898f37834c47449101172ced123 Mon Sep 17 00:00:00 2001 From: David Hildenbrand Date: Tue, 17 Jan 2023 12:22:43 +0100 Subject: migration/savevm: Prepare vmdesc json writer in qemu_savevm_state_setup() ... and store it in the migration state. This is a preparation for storing selected vmds's already in qemu_savevm_state_setup(). Reviewed-by: Dr. David Alan Gilbert Reviewed-by: Peter Xu Reviewed-by: Michael S. Tsirkin Reviewed-by: Juan Quintela Signed-off-by: David Hildenbrand Signed-off-by: Juan Quintela --- migration/migration.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'migration/migration.c') diff --git a/migration/migration.c b/migration/migration.c index 6d4cd8083b..c3ad4cd670 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -1933,6 +1933,8 @@ static void migrate_fd_cleanup(MigrationState *s) g_free(s->hostname); s->hostname = NULL; + json_writer_free(s->vmdesc); + s->vmdesc = NULL; qemu_savevm_state_cleanup(); -- cgit v1.2.3