mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
migration: Initialize and cleanup decompression in migration.c
This fixes compress with colo. Signed-off-by: Lukas Straub <lukasstraub2@web.de> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
52623f23b0
commit
c323518a7a
2 changed files with 9 additions and 5 deletions
|
@ -3558,10 +3558,6 @@ void colo_release_ram_cache(void)
|
|||
*/
|
||||
static int ram_load_setup(QEMUFile *f, void *opaque)
|
||||
{
|
||||
if (compress_threads_load_setup(f)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
xbzrle_load_setup();
|
||||
ramblock_recv_map_init();
|
||||
|
||||
|
@ -3577,7 +3573,6 @@ static int ram_load_cleanup(void *opaque)
|
|||
}
|
||||
|
||||
xbzrle_load_cleanup();
|
||||
compress_threads_load_cleanup();
|
||||
|
||||
RAMBLOCK_FOREACH_NOT_IGNORED(rb) {
|
||||
g_free(rb->receivedmap);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue