Revision 511c0231 migration-unix.c
b/migration-unix.c | ||
---|---|---|
149 | 149 |
socklen_t addrlen = sizeof(addr); |
150 | 150 |
int s = (unsigned long)opaque; |
151 | 151 |
QEMUFile *f; |
152 |
int c, ret;
|
|
152 |
int c; |
|
153 | 153 |
|
154 | 154 |
do { |
155 | 155 |
c = qemu_accept(s, (struct sockaddr *)&addr, &addrlen); |
... | ... | |
168 | 168 |
goto out; |
169 | 169 |
} |
170 | 170 |
|
171 |
ret = qemu_loadvm_state(f); |
|
172 |
if (ret < 0) { |
|
173 |
fprintf(stderr, "load of migration failed\n"); |
|
174 |
goto out_fopen; |
|
175 |
} |
|
176 |
qemu_announce_self(); |
|
177 |
DPRINTF("successfully loaded vm state\n"); |
|
178 |
|
|
179 |
if (autostart) |
|
180 |
vm_start(); |
|
181 |
|
|
182 |
out_fopen: |
|
171 |
process_incoming_migration(f); |
|
183 | 172 |
qemu_fclose(f); |
184 | 173 |
out: |
185 | 174 |
qemu_set_fd_handler2(s, NULL, NULL, NULL, NULL); |
Also available in: Unified diff