diff options
author | zhanghailiang | 2016-10-27 08:43:04 +0200 |
---|---|---|
committer | Amit Shah | 2016-10-30 10:47:39 +0100 |
commit | aef060850bd0e35aa7128e0ae3cef9d62c328314 (patch) | |
tree | 00d1c224767ef8cf90e230ad56000683b999718e /migration/trace-events | |
parent | COLO: Add 'x-colo-lost-heartbeat' command to trigger failover (diff) | |
download | qemu-aef060850bd0e35aa7128e0ae3cef9d62c328314.tar.gz qemu-aef060850bd0e35aa7128e0ae3cef9d62c328314.tar.xz qemu-aef060850bd0e35aa7128e0ae3cef9d62c328314.zip |
COLO: Introduce state to record failover process
When handling failover, COLO processes differently according to
the different stage of failover process, here we introduce a global
atomic variable to record the status of failover.
We add four failover status to indicate the different stage of failover process.
You should use the helpers to get and set the value.
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Amit Shah <amit@amitshah.net>
Diffstat (limited to 'migration/trace-events')
-rw-r--r-- | migration/trace-events | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/migration/trace-events b/migration/trace-events index f374c8cf27..94134f700b 100644 --- a/migration/trace-events +++ b/migration/trace-events @@ -212,3 +212,4 @@ migration_tls_incoming_handshake_complete(void) "" colo_vm_state_change(const char *old, const char *new) "Change '%s' => '%s'" colo_send_message(const char *msg) "Send '%s' message" colo_receive_message(const char *msg) "Receive '%s' message" +colo_failover_set_state(const char *new_state) "new state %s" |