Revision 511c0231 migration-fd.c

b/migration-fd.c
104 104
static void fd_accept_incoming_migration(void *opaque)
105 105
{
106 106
    QEMUFile *f = opaque;
107
    int ret;
108 107

  
109
    ret = qemu_loadvm_state(f);
110
    if (ret < 0) {
111
        fprintf(stderr, "load of migration failed\n");
112
        goto err;
113
    }
114
    qemu_announce_self();
115
    DPRINTF("successfully loaded vm state\n");
116

  
117
    if (autostart)
118
        vm_start();
119

  
120
err:
108
    process_incoming_migration(f);
121 109
    qemu_set_fd_handler2(qemu_stdio_fd(f), NULL, NULL, NULL, NULL);
122 110
    qemu_fclose(f);
123 111
}

Also available in: Unified diff