[PATCH v2 5/5] tests/migration: Add integration test for 'qatzip' compression method

2024-03-26 Thread Bryan Zhang
Adds an integration test for 'qatzip'. Signed-off-by: Bryan Zhang Signed-off-by: Hao Xiang --- Revision: This commit now does some parameter setting to test that changing the 'multifd-qatzip-level' parameter works, and to enable software fallback so that the QATzip test can be run even

[PATCH v2 4/5] migration: Implement 'qatzip' methods using QAT

2024-03-26 Thread Bryan Zhang
Uses QAT to offload deflate compression and decompression in the 'qatzip' compression method for multifd migration. Signed-off-by: Bryan Zhang Signed-off-by: Hao Xiang --- migration/multifd-qatzip.c | 331 + 1 file changed, 298 insertions(+), 33 deletions

[PATCH v2 3/5] migration: Introduce unimplemented 'qatzip' compression method

2024-03-26 Thread Bryan Zhang
. Signed-off-by: Bryan Zhang Signed-off-by: Hao Xiang --- hw/core/qdev-properties-system.c | 6 +- migration/meson.build| 1 + migration/multifd-qatzip.c | 117 +++ migration/multifd.h | 1 + qapi/migration.json | 5

[PATCH v2 1/5] meson: Introduce 'qatzip' feature to the build system

2024-03-26 Thread Bryan Zhang
Add a 'qatzip' feature, which is automatically disabled, and which depends on the QATzip library if enabled. Signed-off-by: Bryan Zhang Signed-off-by: Hao Xiang --- meson.build | 10 ++ meson_options.txt | 2 ++ scripts/meson-buildoptions.sh | 3 +++ 3

[PATCH v2 2/5] migration: Add migration parameters for QATzip

2024-03-26 Thread Bryan Zhang
Adds support for migration parameters to control QATzip compression level and to enable/disable software fallback when QAT hardware is unavailable. This is a preparatory commit for a subsequent commit that will actually use QATzip compression. Signed-off-by: Bryan Zhang Signed-off-by: Hao Xiang

[PATCH 1/2] migration: Properly apply migration compression level parameters

2024-02-29 Thread Bryan Zhang
From: Bryan Zhang Some glue code was missing, so that using `qmp_migrate_set_parameters` to set `multifd-zstd-level` or `multifd-zlib-level` did not work. This commit adds the glue code to fix that. Signed-off-by: Bryan Zhang --- migration/options.c | 12 1 file changed, 12

[PATCH 2/2] tests/migration: Set compression level in migration tests

2024-02-29 Thread Bryan Zhang
From: Bryan Zhang Adds calls to set compression level for `zstd` and `zlib` migration tests, just to make sure that the calls work. Signed-off-by: Bryan Zhang --- tests/qtest/migration-test.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tests/qtest/migration-test.c b/tests

[PATCH 0/2] *** Properly apply migration compression level

2024-02-29 Thread Bryan Zhang
From: Bryan Zhang There is some glue code missing, such that the `qmp_migrate_set_parameters` function does not properly update the `multifd_zstd_level` and `multifd_zlib_level` parameters. This patch adds the glue code and also adds some function calls to the existing migration tests to make

Re: [External] Re: [PATCH 5/5] migration: Add integration test for 'qatzip' compression method

2024-02-28 Thread Bryan Zhang .
On Mon, Jan 29, 2024 at 12:53 AM Peter Xu wrote: > On Sun, Dec 31, 2023 at 08:58:04PM +0000, Bryan Zhang wrote: > > Adds an integration test for 'qatzip'. > > Please use "tests" as prefix of this patch. It can be "tests/migration:", > "tests/migratio

[PATCH 4/5] migration: Implement 'qatzip' methods using QAT

2023-12-31 Thread Bryan Zhang
Uses QAT to offload deflate compression in the 'qatzip' compression method for multifd migration. Signed-off-by: Bryan Zhang Signed-off-by: Hao Xiang --- migration/multifd-qatzip.c | 314 +++-- 1 file changed, 301 insertions(+), 13 deletions(-) diff --git

[PATCH 2/5] migration: Add compression level parameter for QATzip

2023-12-31 Thread Bryan Zhang
Adds support for a parameter to specify QATzip compression level. This is a preparatory commit for a subsequent commit that will actually use QATzip compression. Signed-off-by: Bryan Zhang Signed-off-by: Hao Xiang --- migration/migration-hmp-cmds.c | 4 migration/options.c

[PATCH 5/5] migration: Add integration test for 'qatzip' compression method

2023-12-31 Thread Bryan Zhang
Adds an integration test for 'qatzip'. Signed-off-by: Bryan Zhang Signed-off-by: Hao Xiang --- tests/qtest/meson.build | 4 tests/qtest/migration-test.c | 37 2 files changed, 41 insertions(+) diff --git a/tests/qtest/meson.build b/tests/qtest

[PATCH 3/5] migration: Introduce unimplemented 'qatzip' compression method

2023-12-31 Thread Bryan Zhang
. Signed-off-by: Bryan Zhang Signed-off-by: Hao Xiang --- hw/core/qdev-properties-system.c | 6 ++- migration/meson.build| 1 + migration/multifd-qatzip.c | 81 migration/multifd.h | 1 + qapi/migration.json | 5 +- 5 files

[PATCH 1/5] meson: Introduce 'qatzip' feature to the build system.

2023-12-31 Thread Bryan Zhang
Add a 'qatzip' feature, which is automatically disabled, and which depends on the QATzip library if enabled. Signed-off-by: Bryan Zhang Signed-off-by: Hao Xiang --- meson.build | 10 ++ meson_options.txt | 2 ++ scripts/meson-buildoptions.sh | 3 +++ 3