OSDN Git Service

COLO: Don't process failover request while loading VM's state
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Tue, 17 Jan 2017 12:57:44 +0000 (20:57 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 13 Feb 2017 17:27:13 +0000 (17:27 +0000)
commita8664ba5101446f4f2c24b24ed9e10335bbbd46b
tree57a222861fe07e7cc0050d5ba5387d4c4fb0680a
parentc937b9a6db2d564b96aae35a6757bb4144ea5184
COLO: Don't process failover request while loading VM's state

We should not do failover work while the main thread is loading
VM's state. Otherwise the consistent of VM's memory and
device state will be broken.

We will restart the loading process after jump over the stage,
The new failover status 'RELAUNCH' will help to record if we
need to restart the process.

Cc: Eric Blake <eblake@redhat.com>
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <1484657864-21708-4-git-send-email-zhang.zhanghailiang@huawei.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
   Added a missing '(Since 2.9)'
migration/colo.c
qapi-schema.json