Commit 0d3b26f5 authored by Juan Quintela's avatar Juan Quintela

migration: move migration notifier

At this point, it is waranteed that state is ACTIVE.  Old position
didn't assured hat.
Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
parent 2e450865
......@@ -455,8 +455,6 @@ void qmp_migrate(const char *uri, bool has_blk, bool blk,
error_propagate(errp, local_err);
return;
}
notifier_list_notify(&migration_state_notifiers, s);
}
void qmp_migrate_cancel(Error **errp)
......@@ -814,4 +812,5 @@ void migrate_fd_connect(MigrationState *migration_state)
qemu_thread_create(&s->thread, buffered_file_thread, s,
QEMU_THREAD_DETACHED);
notifier_list_notify(&migration_state_notifiers, s);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment