Migration/colo.c: Make user obtain the last COLO mode info after failover
commit5ed0deca41b201a66d858d7296fe6b780d757404
authorZhang Chen <chen.zhang@intel.com>
Fri, 22 Mar 2019 10:13:33 +0000 (22 18:13 +0800)
committerJuan Quintela <quintela@redhat.com>
Mon, 25 Mar 2019 17:45:46 +0000 (25 18:45 +0100)
tree1e25eb91f6770f99c589a82a623b6d9eadecd8b0
parent82cd368ccd0a962f1f141e0e529abc54d5ab504e
Migration/colo.c: Make user obtain the last COLO mode info after failover

Add the last_colo_mode to save the status after failover.
This patch can solve the issue that user want to get last colo mode
use query_colo_status after failover.

Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/colo.c
qapi/migration.json