migration: announce VM's new home just before VM is runnable
authorAmit Shah <amit.shah@redhat.com>
Wed, 14 Oct 2015 12:07:19 +0000 (17:37 +0530)
committerJuan Quintela <quintela@redhat.com>
Thu, 15 Oct 2015 06:13:03 +0000 (08:13 +0200)
commit92e3762237475407fe03e1ccac6e30612ab96caf
tree2895816e01bde9abaecbd61ede9c09b52f1f61a8
parented1f3e0090069dcb9458aa9e450df12bf8eba0b0
migration: announce VM's new home just before VM is runnable

We were announcing the dest host's IP as our new IP a bit too soon -- if
there were errors detected after this announcement was done, the
migration is failed and the VM could continue running on the src host --
causing problems later.

Move around the qemu_announce_self() call so it's done just before the
VM is runnable.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/migration.c