diff options
author | Peter Xu <peterx@redhat.com> | 2018-05-02 18:47:25 +0800 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2018-05-15 20:56:30 +0200 |
commit | 135b87b4f08029a4ec5c31f9c4473b519da7e2f7 (patch) | |
tree | 8a3c1fbc28ee2b3e27551a15f70453ff31d5b346 /qapi | |
parent | d3e35b8f6248eab2c3d412198a487ae49706b214 (diff) | |
download | qemu-135b87b4f08029a4ec5c31f9c4473b519da7e2f7.zip |
migration: new state "postcopy-recover"
Introducing new migration state "postcopy-recover". If a migration
procedure is paused and the connection is rebuilt afterward
successfully, we'll switch the source VM state from "postcopy-paused" to
the new state "postcopy-recover", then we'll do the resume logic in the
migration thread (along with the return path thread).
This patch only do the state switch on source side. Another following up
patch will handle the state switching on destination side using the same
status bit.
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180502104740.12123-10-peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
s/2.11/2.13/
Diffstat (limited to 'qapi')
-rw-r--r-- | qapi/migration.json | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qapi/migration.json b/qapi/migration.json index b8ca60ac43..4e8e61ceef 100644 --- a/qapi/migration.json +++ b/qapi/migration.json @@ -91,6 +91,8 @@ # # @postcopy-paused: during postcopy but paused. (since 2.13) # +# @postcopy-recover: trying to recover from a paused postcopy. (since 2.13) +# # @completed: migration is finished. # # @failed: some error occurred during migration process. @@ -109,7 +111,7 @@ { 'enum': 'MigrationStatus', 'data': [ 'none', 'setup', 'cancelling', 'cancelled', 'active', 'postcopy-active', 'postcopy-paused', - 'completed', 'failed', 'colo', + 'postcopy-recover', 'completed', 'failed', 'colo', 'pre-switchover', 'device' ] } ## |