summaryrefslogtreecommitdiffstats
path: root/migration/migration.c
diff options
context:
space:
mode:
authorJuan Quintela2017-06-28 11:52:27 +0200
committerDr. David Alan Gilbert2017-07-10 18:52:21 +0200
commitf265e0e437a5d5fd0b48143012e2242b85816f61 (patch)
treebfc0fa5a82d2937aef0c4cee5f632f8c202f2933 /migration/migration.c
parentmigration: Create load_setup()/cleanup() methods (diff)
downloadqemu-f265e0e437a5d5fd0b48143012e2242b85816f61.tar.gz
qemu-f265e0e437a5d5fd0b48143012e2242b85816f61.tar.xz
qemu-f265e0e437a5d5fd0b48143012e2242b85816f61.zip
migration: Convert ram to use new load_setup()/load_cleanup()
Once there, I rename ram_migration_cleanup() to ram_save_cleanup(). Notice that this is the first pass, and I only passed XBZRLE to the new scheme. Moved decoded_buf to inside XBZRLE struct. As a bonus, I don't have to export xbzrle functions from ram.c. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> -- loaded_data pointer was needed because called can change it (dave) spell loaded correctly in comment (dave) Message-Id: <20170628095228.4661-5-quintela@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/migration.c')
-rw-r--r--migration/migration.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/migration/migration.c b/migration/migration.c
index beea01ce63..7e5dbd9b92 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -352,9 +352,6 @@ static void process_incoming_migration_co(void *opaque)
migrate_decompress_threads_join();
exit(EXIT_FAILURE);
}
-
- free_xbzrle_decoded_buf();
-
mis->bh = qemu_bh_new(process_incoming_migration_bh, mis);
qemu_bh_schedule(mis->bh);
}