Revision 511c0231 migration-exec.c
b/migration-exec.c | ||
---|---|---|
121 | 121 |
static void exec_accept_incoming_migration(void *opaque) |
122 | 122 |
{ |
123 | 123 |
QEMUFile *f = opaque; |
124 |
int ret; |
|
125 | 124 |
|
126 |
ret = qemu_loadvm_state(f); |
|
127 |
if (ret < 0) { |
|
128 |
fprintf(stderr, "load of migration failed\n"); |
|
129 |
goto err; |
|
130 |
} |
|
131 |
qemu_announce_self(); |
|
132 |
DPRINTF("successfully loaded vm state\n"); |
|
133 |
|
|
134 |
if (autostart) |
|
135 |
vm_start(); |
|
136 |
|
|
137 |
err: |
|
125 |
process_incoming_migration(f); |
|
138 | 126 |
qemu_set_fd_handler2(qemu_stdio_fd(f), NULL, NULL, NULL, NULL); |
139 | 127 |
qemu_fclose(f); |
140 | 128 |
} |
Also available in: Unified diff