aboutsummaryrefslogtreecommitdiff
path: root/migration.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2012-10-03 20:04:41 +0200
committerJuan Quintela <quintela@redhat.com>2012-12-20 23:09:39 +0100
commit0d3b26f5488e04c01667dd12c9bd7eed54dda258 (patch)
tree5bf5715b6b465f24700e3908917e341f64c784ae /migration.c
parent2e450865338738300e529457879d81332939f064 (diff)
migration: move migration notifier
At this point, it is waranteed that state is ACTIVE. Old position didn't assured hat. Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration.c')
-rw-r--r--migration.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/migration.c b/migration.c
index 4a9f0b5041..596aca7276 100644
--- a/migration.c
+++ b/migration.c
@@ -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);
}