This will be used by postcopy migration. Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx> --- migration.c | 4 ++-- migration.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/migration.c b/migration.c index 753addb..48a8f68 100644 --- a/migration.c +++ b/migration.c @@ -159,7 +159,7 @@ MigrationInfo *qmp_query_migrate(Error **errp) /* shared migration helpers */ -static int migrate_fd_cleanup(MigrationState *s) +int migrate_fd_cleanup(MigrationState *s) { int ret = 0; @@ -187,7 +187,7 @@ void migrate_fd_error(MigrationState *s) migrate_fd_cleanup(s); } -static void migrate_fd_completed(MigrationState *s) +void migrate_fd_completed(MigrationState *s) { DPRINTF("setting completed state\n"); if (migrate_fd_cleanup(s) < 0) { diff --git a/migration.h b/migration.h index 6cf4512..d0dd536 100644 --- a/migration.h +++ b/migration.h @@ -62,7 +62,9 @@ int fd_start_incoming_migration(const char *path); int fd_start_outgoing_migration(MigrationState *s, const char *fdname); +int migrate_fd_cleanup(MigrationState *s); void migrate_fd_error(MigrationState *s); +void migrate_fd_completed(MigrationState *s); void migrate_fd_connect(MigrationState *s); -- 1.7.1.1 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html