migration: implement "postcopy-pause" src logic
commitb23c2ade250718fe77b51e116f95f3c34c8a4c24
authorPeter Xu <peterx@redhat.com>
Wed, 2 May 2018 10:47:19 +0000 (2 18:47 +0800)
committerJuan Quintela <quintela@redhat.com>
Tue, 15 May 2018 18:24:27 +0000 (15 20:24 +0200)
treee6bad4abb8c82bdb88c1ae19b1a04ae6c2aa2822
parenta688d2c1abc791254fddd1366ecc11f8f5c6eb7a
migration: implement "postcopy-pause" src logic

Now when network down for postcopy, the source side will not fail the
migration. Instead we convert the status into this new paused state, and
we will try to wait for a rescue in the future.

If a recovery is detected, migration_thread() will reset its local
variables to prepare for that.

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