From 511c0231033eb8fbdf2a615b429e1bc6b5aad52c Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Wed, 9 Jun 2010 14:10:55 +0200 Subject: Factorize common migration incoming code Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori --- migration-exec.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'migration-exec.c') diff --git a/migration-exec.c b/migration-exec.c index a8813b4fbf..14718dd1d1 100644 --- a/migration-exec.c +++ b/migration-exec.c @@ -121,20 +121,8 @@ err_after_alloc: static void exec_accept_incoming_migration(void *opaque) { QEMUFile *f = opaque; - int ret; - ret = qemu_loadvm_state(f); - if (ret < 0) { - fprintf(stderr, "load of migration failed\n"); - goto err; - } - qemu_announce_self(); - DPRINTF("successfully loaded vm state\n"); - - if (autostart) - vm_start(); - -err: + process_incoming_migration(f); qemu_set_fd_handler2(qemu_stdio_fd(f), NULL, NULL, NULL, NULL); qemu_fclose(f); } -- cgit v1.2.1