On 5/8/23 16:26, Juan Quintela wrote:
Hi
This is just the compression bits of the Migration PULL request for
20230428. Only change is that we don't run the compression tests by
default.
The problem already exist with compression code. The test just show
that it don't work.
Please apply, Juan.
Missing request-pull data.
r~
Lukas Straub (13):
qtest/migration-test.c: Add tests with compress enabled
qtest/migration-test.c: Add postcopy tests with compress enabled
ram.c: Let the compress threads return a CompressResult enum
ram.c: Dont change param->block in the compress thread
ram.c: Reset result after sending queued data
ram.c: Do not call save_page_header() from compress threads
ram.c: Call update_compress_thread_counts from
compress_send_queued_data
ram.c: Remove last ram.c dependency from the core compress code
ram.c: Move core compression code into its own file
ram.c: Move core decompression code into its own file
ram compress: Assert that the file buffer matches the result
ram-compress.c: Make target independent
migration: Initialize and cleanup decompression in migration.c
migration/meson.build | 6 +-
migration/migration.c | 9 +
migration/qemu-file.c | 11 +
migration/qemu-file.h | 1 +
migration/ram-compress.c | 485 +++++++++++++++++++++++++++++++++
migration/ram-compress.h | 70 +++++
migration/ram.c | 502 +++--------------------------------
tests/qtest/migration-test.c | 134 ++++++++++
8 files changed, 758 insertions(+), 460 deletions(-)
create mode 100644 migration/ram-compress.c
create mode 100644 migration/ram-compress.h