mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
tests/migration: Add integration test for 'qatzip' compression method
Adds an integration test for 'qatzip'. Reviewed-by: Fabiano Rosas <farosas@suse.de> Signed-off-by: Bryan Zhang <bryan.zhang@bytedance.com> Signed-off-by: Hao Xiang <hao.xiang@linux.dev> Signed-off-by: Yichen Wang <yichen.wang@bytedance.com> Link: https://lore.kernel.org/r/20240830232722.58272-6-yichen.wang@bytedance.com Signed-off-by: Peter Xu <peterx@redhat.com>
This commit is contained in:
parent
80484f9459
commit
afe166d4e8
1 changed files with 27 additions and 0 deletions
|
@ -2920,6 +2920,18 @@ test_migrate_precopy_tcp_multifd_zstd_start(QTestState *from,
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_ZSTD */
|
#endif /* CONFIG_ZSTD */
|
||||||
|
|
||||||
|
#ifdef CONFIG_QATZIP
|
||||||
|
static void *
|
||||||
|
test_migrate_precopy_tcp_multifd_qatzip_start(QTestState *from,
|
||||||
|
QTestState *to)
|
||||||
|
{
|
||||||
|
migrate_set_parameter_int(from, "multifd-qatzip-level", 2);
|
||||||
|
migrate_set_parameter_int(to, "multifd-qatzip-level", 2);
|
||||||
|
|
||||||
|
return test_migrate_precopy_tcp_multifd_start_common(from, to, "qatzip");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_QPL
|
#ifdef CONFIG_QPL
|
||||||
static void *
|
static void *
|
||||||
test_migrate_precopy_tcp_multifd_qpl_start(QTestState *from,
|
test_migrate_precopy_tcp_multifd_qpl_start(QTestState *from,
|
||||||
|
@ -3017,6 +3029,17 @@ static void test_multifd_tcp_zstd(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_QATZIP
|
||||||
|
static void test_multifd_tcp_qatzip(void)
|
||||||
|
{
|
||||||
|
MigrateCommon args = {
|
||||||
|
.listen_uri = "defer",
|
||||||
|
.start_hook = test_migrate_precopy_tcp_multifd_qatzip_start,
|
||||||
|
};
|
||||||
|
test_precopy_common(&args);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_QPL
|
#ifdef CONFIG_QPL
|
||||||
static void test_multifd_tcp_qpl(void)
|
static void test_multifd_tcp_qpl(void)
|
||||||
{
|
{
|
||||||
|
@ -3922,6 +3945,10 @@ int main(int argc, char **argv)
|
||||||
migration_test_add("/migration/multifd/tcp/plain/zstd",
|
migration_test_add("/migration/multifd/tcp/plain/zstd",
|
||||||
test_multifd_tcp_zstd);
|
test_multifd_tcp_zstd);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_QATZIP
|
||||||
|
migration_test_add("/migration/multifd/tcp/plain/qatzip",
|
||||||
|
test_multifd_tcp_qatzip);
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_QPL
|
#ifdef CONFIG_QPL
|
||||||
migration_test_add("/migration/multifd/tcp/plain/qpl",
|
migration_test_add("/migration/multifd/tcp/plain/qpl",
|
||||||
test_multifd_tcp_qpl);
|
test_multifd_tcp_qpl);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue