migration/ram.c: Fix migration with compress enabled
authorLukas Straub <lukasstraub2@web.de>
Sun, 2 Apr 2023 17:06:32 +0000 (17:06 +0000)
committerJuan Quintela <quintela@redhat.com>
Wed, 12 Apr 2023 19:51:34 +0000 (21:51 +0200)
commit37502df32c4b02403fe92452c4ed1d96da3df01c
tree053b52c33861ae3a6884e0f83c42f1b5f2e7d0dd
parent06064a671573580326b1f23a2afa2702c48d8e05
migration/ram.c: Fix migration with compress enabled

Since ec6f3ab9, migration with compress enabled was broken, because
the compress threads use a dummy QEMUFile which just acts as a
buffer and that commit accidentally changed it to use the outgoing
migration channel instead.

Fix this by using the dummy file again in the compress threads.

Signed-off-by: Lukas Straub <lukasstraub2@web.de>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/ram.c