aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Zhang <bryan.zhang@BYTEDANCE.COM>2024-03-01 03:59:01 +0000
committerPeter Xu <peterx@redhat.com>2024-03-01 14:14:55 +0800
commit2b571432314ab42da742fbb578f4174166ecd7f5 (patch)
treea7c643c8c02ba13a85a0211139a858b6f4734231
parentb4014a2bf57ce08e2f6458cd82e9f968facf25c8 (diff)
downloadqemu-2b571432314ab42da742fbb578f4174166ecd7f5.zip
qemu-2b571432314ab42da742fbb578f4174166ecd7f5.tar.gz
qemu-2b571432314ab42da742fbb578f4174166ecd7f5.tar.bz2
tests/migration: Set compression level in migration tests
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 <bryan.zhang@bytedance.com> Link: https://lore.kernel.org/r/20240301035901.4006936-3-bryan.zhang@bytedance.com Signed-off-by: Peter Xu <peterx@redhat.com>
-rw-r--r--tests/qtest/migration-test.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c
index 83512bc..8c35f34 100644
--- a/tests/qtest/migration-test.c
+++ b/tests/qtest/migration-test.c
@@ -2664,6 +2664,13 @@ static void *
test_migrate_precopy_tcp_multifd_zlib_start(QTestState *from,
QTestState *to)
{
+ /*
+ * Overloading this test to also check that set_parameter does not error.
+ * This is also done in the tests for the other compression methods.
+ */
+ migrate_set_parameter_int(from, "multifd-zlib-level", 2);
+ migrate_set_parameter_int(to, "multifd-zlib-level", 2);
+
return test_migrate_precopy_tcp_multifd_start_common(from, to, "zlib");
}
@@ -2672,6 +2679,9 @@ static void *
test_migrate_precopy_tcp_multifd_zstd_start(QTestState *from,
QTestState *to)
{
+ migrate_set_parameter_int(from, "multifd-zstd-level", 2);
+ migrate_set_parameter_int(to, "multifd-zstd-level", 2);
+
return test_migrate_precopy_tcp_multifd_start_common(from, to, "zstd");
}
#endif /* CONFIG_ZSTD */