migration: final handshake for the resume
commit9419069695a534b1c8051e8ba8f3b4b3d21e4520
authorPeter Xu <peterx@redhat.com>
Wed, 2 May 2018 10:47:34 +0000 (2 18:47 +0800)
committerJuan Quintela <quintela@redhat.com>
Tue, 15 May 2018 18:57:00 +0000 (15 20:57 +0200)
tree4128daf0c401373497feed6c0e5240a48861e60f
parent08614f34977a18fdc06c56f4e12b6cf47c06da57
migration: final handshake for the resume

Finish the last step to do the final handshake for the recovery.

First source sends one MIG_CMD_RESUME to dst, telling that source is
ready to resume.

Then, dest replies with MIG_RP_MSG_RESUME_ACK to source, telling that
dest is ready to resume (after switch to postcopy-active state).

When source received the RESUME_ACK, it switches its state to
postcopy-active, and finally the recovery is completed.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180502104740.12123-19-peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/migration.c