[RFC PATCH 2/6] migration: Refactoring multi-thread compress migration

2020-11-26 Thread Zeyu Jin
Code refactor for the compression procedure which includes: 1. Move qemu_compress_data and qemu_put_compression_data from qemu-file.c to ram.c, for the reason that most part of the code logical has nothing to do with qemu-file. Besides, the decompression code is located at ram.c only. 2. Simplify

[RFC PATCH 2/6] migration: Refactoring multi-thread compress migration

2020-11-09 Thread Zeyu Jin
Code refactor for the compression procedure which includes: 1. Move qemu_compress_data and qemu_put_compression_data from qemu-file.c to ram.c, for the reason that most part of the code logical has nothing to do with qemu-file. Besides, the decompression code is located at ram.c only. 2. Simplify