ram.c: Dont change param->block in the compress thread
commit10c2f7b747bebfbf67b2219330269dcd5721f3d9
authorLukas Straub <lukasstraub2@web.de>
Thu, 20 Apr 2023 09:47:59 +0000 (20 11:47 +0200)
committerJuan Quintela <quintela@redhat.com>
Mon, 8 May 2023 13:25:26 +0000 (8 15:25 +0200)
tree45ac7ed5fd6d2f91603b3af30406c31518c2e92a
parent97274a871fc4155635414bfd343b5df599ecba76
ram.c: Dont change param->block in the compress thread

Instead introduce a extra parameter to trigger the compress thread.
Now, when the compress thread is done, we know what RAMBlock and
offset it did compress.

This will be used in the next commits to move save_page_header()
out of compress code.

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