Revision 1299c631 migration.c
b/migration.c | ||
---|---|---|
155 | 155 |
|
156 | 156 |
static void migrate_fd_monitor_suspend(MigrationState *s, Monitor *mon) |
157 | 157 |
{ |
158 |
s->mon = mon; |
|
159 | 158 |
if (monitor_suspend(mon) == 0) { |
160 | 159 |
DPRINTF("suspending monitor\n"); |
161 | 160 |
} else { |
... | ... | |
383 | 382 |
s->bandwidth_limit = bandwidth_limit; |
384 | 383 |
s->blk = blk; |
385 | 384 |
s->shared = inc; |
386 |
s->mon = NULL; |
|
385 |
|
|
386 |
/* s->mon is used for two things: |
|
387 |
- pass fd in fd migration |
|
388 |
- suspend/resume monitor for not detached migration |
|
389 |
*/ |
|
390 |
s->mon = mon; |
|
387 | 391 |
s->bandwidth_limit = bandwidth_limit; |
388 | 392 |
s->state = MIG_STATE_SETUP; |
389 | 393 |
|
... | ... | |
435 | 439 |
return ret; |
436 | 440 |
} |
437 | 441 |
|
442 |
if (detach) { |
|
443 |
s->mon = NULL; |
|
444 |
} |
|
445 |
|
|
438 | 446 |
notifier_list_notify(&migration_state_notifiers, s); |
439 | 447 |
return 0; |
440 | 448 |
} |
Also available in: Unified diff