[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 11/18] tests/migration-test: add qpl compression test
From: |
Fabiano Rosas |
Subject: |
[PULL 11/18] tests/migration-test: add qpl compression test |
Date: |
Fri, 14 Jun 2024 14:17:55 -0300 |
From: Yuan Liu <yuan1.liu@intel.com>
add qpl to compression method test for multifd migration
the qpl compression supports software path and hardware
path(IAA device), and the hardware path is used first by
default. If the hardware path is unavailable, it will
automatically fallback to the software path for testing.
Signed-off-by: Yuan Liu <yuan1.liu@intel.com>
Reviewed-by: Nanhai Zou <nanhai.zou@intel.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
---
tests/qtest/migration-test.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c
index d6f5ceed80..887cd9fe42 100644
--- a/tests/qtest/migration-test.c
+++ b/tests/qtest/migration-test.c
@@ -2638,6 +2638,15 @@ test_migrate_precopy_tcp_multifd_zstd_start(QTestState
*from,
}
#endif /* CONFIG_ZSTD */
+#ifdef CONFIG_QPL
+static void *
+test_migrate_precopy_tcp_multifd_qpl_start(QTestState *from,
+ QTestState *to)
+{
+ return test_migrate_precopy_tcp_multifd_start_common(from, to, "qpl");
+}
+#endif /* CONFIG_QPL */
+
static void test_multifd_tcp_uri_none(void)
{
MigrateCommon args = {
@@ -2718,6 +2727,17 @@ static void test_multifd_tcp_zstd(void)
}
#endif
+#ifdef CONFIG_QPL
+static void test_multifd_tcp_qpl(void)
+{
+ MigrateCommon args = {
+ .listen_uri = "defer",
+ .start_hook = test_migrate_precopy_tcp_multifd_qpl_start,
+ };
+ test_precopy_common(&args);
+}
+#endif
+
#ifdef CONFIG_GNUTLS
static void *
test_migrate_multifd_tcp_tls_psk_start_match(QTestState *from,
@@ -3593,6 +3613,10 @@ int main(int argc, char **argv)
migration_test_add("/migration/multifd/tcp/plain/zstd",
test_multifd_tcp_zstd);
#endif
+#ifdef CONFIG_QPL
+ migration_test_add("/migration/multifd/tcp/plain/qpl",
+ test_multifd_tcp_qpl);
+#endif
#ifdef CONFIG_GNUTLS
migration_test_add("/migration/multifd/tcp/tls/psk/match",
test_multifd_tcp_tls_psk_match);
--
2.35.3
- [PULL 01/18] tests/qtest: Move common define from libqos-spapr.h to new ppc-util.h, (continued)
- [PULL 01/18] tests/qtest: Move common define from libqos-spapr.h to new ppc-util.h, Fabiano Rosas, 2024/06/14
- [PULL 02/18] tests/qtest/migration-test: Quieten ppc64 QEMU warnings, Fabiano Rosas, 2024/06/14
- [PULL 03/18] tests/qtest/migration-test: Enable on ppc64 TCG, Fabiano Rosas, 2024/06/14
- [PULL 04/18] tests/qtest/migration-test: Use custom asm bios for ppc64, Fabiano Rosas, 2024/06/14
- [PULL 05/18] docs/migration: add qpl compression feature, Fabiano Rosas, 2024/06/14
- [PULL 06/18] migration/multifd: put IOV initialization into compression method, Fabiano Rosas, 2024/06/14
- [PULL 07/18] configure: add --enable-qpl build option, Fabiano Rosas, 2024/06/14
- [PULL 08/18] migration/multifd: add qpl compression method, Fabiano Rosas, 2024/06/14
- [PULL 09/18] migration/multifd: implement initialization of qpl compression, Fabiano Rosas, 2024/06/14
- [PULL 10/18] migration/multifd: implement qpl compression and decompression, Fabiano Rosas, 2024/06/14
- [PULL 11/18] tests/migration-test: add qpl compression test,
Fabiano Rosas <=
- [PULL 12/18] docs/migration: add uadk compression feature, Fabiano Rosas, 2024/06/14
- [PULL 13/18] configure: Add uadk option, Fabiano Rosas, 2024/06/14
- [PULL 14/18] migration/multifd: add uadk compression framework, Fabiano Rosas, 2024/06/14
- [PULL 15/18] migration/multifd: Add UADK initialization, Fabiano Rosas, 2024/06/14
- [PULL 16/18] migration/multifd: Add UADK based compression and decompression, Fabiano Rosas, 2024/06/14
- [PULL 17/18] migration/multifd: Switch to no compression when no hardware support, Fabiano Rosas, 2024/06/14
- [PULL 18/18] tests/migration-test: add uadk compression test, Fabiano Rosas, 2024/06/14
- Re: [PULL 00/18] Migration patches for 2024-06-14, Richard Henderson, 2024/06/15