]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
migration-test: misc exports
authorSteve Sistare <steven.sistare@oracle.com>
Wed, 1 Oct 2025 15:34:08 +0000 (08:34 -0700)
committerFabiano Rosas <farosas@suse.de>
Wed, 1 Oct 2025 20:09:22 +0000 (17:09 -0300)
Export misc definitions needed by the cpr-exec test.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/qemu-devel/1759332851-370353-17-git-send-email-steven.sistare@oracle.com
Signed-off-by: Fabiano Rosas <farosas@suse.de>
tests/qtest/migration/bootfile.c
tests/qtest/migration/bootfile.h
tests/qtest/migration/framework.c
tests/qtest/migration/framework.h

index fac059d11d74a794bed89877079f7c6b49d352bd..479c43231d7176eee2d4dcb3e5df1f1089d8ca10 100644 (file)
@@ -68,3 +68,8 @@ char *bootfile_create(const char *arch, const char *dir, bool suspend_me)
 
     return bootpath;
 }
+
+char *bootfile_get(void)
+{
+    return bootpath;
+}
index 6d6a67386e1bea0467d2f6ce772e531605db0b8a..96e784b1634034478b462330de10125d861f0133 100644 (file)
@@ -35,5 +35,6 @@
 
 void bootfile_delete(void);
 char *bootfile_create(const char *arch, const char *dir, bool suspend_me);
+char *bootfile_get(void);
 
 #endif /* BOOTFILE_H */
index d20938ccec5e26e4dc63ab45efc837895622f1d5..89c85cd314a3913b8fd830c7e837088e681769c6 100644 (file)
@@ -1007,6 +1007,11 @@ QTestMigrationState *get_src(void)
     return &src_state;
 }
 
+QTestMigrationState *get_dst(void)
+{
+    return &dst_state;
+}
+
 MigrationTestEnv *migration_get_env(void)
 {
     static MigrationTestEnv *env;
index 19d552f78a1fd33eab7706c99534d07c2e1f002f..cc0d09b6da231b9b757fcd5ca97d1c47c331de6f 100644 (file)
@@ -237,6 +237,7 @@ void *migrate_hook_start_precopy_tcp_multifd_common(QTestState *from,
 
 typedef struct QTestMigrationState QTestMigrationState;
 QTestMigrationState *get_src(void);
+QTestMigrationState *get_dst(void);
 
 #ifdef CONFIG_GNUTLS
 void migration_test_add_tls(MigrationTestEnv *env);