Revision 9e8dd451 migration.c
b/migration.c | ||
---|---|---|
124 | 124 |
} |
125 | 125 |
|
126 | 126 |
current_migration = s; |
127 |
notifier_list_notify(&migration_state_notifiers); |
|
127 |
notifier_list_notify(&migration_state_notifiers, NULL);
|
|
128 | 128 |
return 0; |
129 | 129 |
} |
130 | 130 |
|
... | ... | |
276 | 276 |
{ |
277 | 277 |
DPRINTF("setting error state\n"); |
278 | 278 |
s->state = MIG_STATE_ERROR; |
279 |
notifier_list_notify(&migration_state_notifiers); |
|
279 |
notifier_list_notify(&migration_state_notifiers, NULL);
|
|
280 | 280 |
migrate_fd_cleanup(s); |
281 | 281 |
} |
282 | 282 |
|
... | ... | |
334 | 334 |
monitor_resume(s->mon); |
335 | 335 |
} |
336 | 336 |
s->state = MIG_STATE_ERROR; |
337 |
notifier_list_notify(&migration_state_notifiers); |
|
337 |
notifier_list_notify(&migration_state_notifiers, NULL);
|
|
338 | 338 |
} |
339 | 339 |
|
340 | 340 |
return ret; |
... | ... | |
395 | 395 |
state = MIG_STATE_ERROR; |
396 | 396 |
} |
397 | 397 |
s->state = state; |
398 |
notifier_list_notify(&migration_state_notifiers); |
|
398 |
notifier_list_notify(&migration_state_notifiers, NULL);
|
|
399 | 399 |
} |
400 | 400 |
} |
401 | 401 |
|
... | ... | |
415 | 415 |
DPRINTF("cancelling migration\n"); |
416 | 416 |
|
417 | 417 |
s->state = MIG_STATE_CANCELLED; |
418 |
notifier_list_notify(&migration_state_notifiers); |
|
418 |
notifier_list_notify(&migration_state_notifiers, NULL);
|
|
419 | 419 |
qemu_savevm_state_cancel(s->mon, s->file); |
420 | 420 |
|
421 | 421 |
migrate_fd_cleanup(s); |
... | ... | |
429 | 429 |
|
430 | 430 |
if (s->state == MIG_STATE_ACTIVE) { |
431 | 431 |
s->state = MIG_STATE_CANCELLED; |
432 |
notifier_list_notify(&migration_state_notifiers); |
|
432 |
notifier_list_notify(&migration_state_notifiers, NULL);
|
|
433 | 433 |
migrate_fd_cleanup(s); |
434 | 434 |
} |
435 | 435 |
qemu_free(s); |
Also available in: Unified diff