qemu/migration
zhanghailiang 4291d372e2 COLO: Load VMState into QIOChannelBuffer before restore it
We should not destroy the state of SVM (Secondary VM) until we receive
the complete data of PVM's state, in case the primary fails in the process
of sending the state, so we cache the VM's state in secondary side before
load it into SVM.

Besides, we should call qemu_system_reset() before load VM state,
which can ensure the data is intact.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Amit Shah <amit@amitshah.net>
2016-10-30 15:17:39 +05:30
..
block.c migration/block: Convert saving to BlockBackend 2016-06-08 10:21:08 +02:00
colo-comm.c migration: Switch to COLO process after finishing loadvm 2016-10-30 15:17:39 +05:30
colo.c COLO: Load VMState into QIOChannelBuffer before restore it 2016-10-30 15:17:39 +05:30
exec.c migration: set name for all I/O channels created 2016-10-27 09:13:10 +02:00
fd.c migration: set name for all I/O channels created 2016-10-27 09:13:10 +02:00
Makefile.objs COLO: migrate COLO related info to secondary node 2016-10-30 15:17:39 +05:30
migration.c migration: Switch to COLO process after finishing loadvm 2016-10-30 15:17:39 +05:30
postcopy-ram.c migration/postcopy: Explicitly disallow huge pages 2016-10-13 17:23:53 +02:00
qemu-file-channel.c migration: introduce a new QEMUFile impl based on QIOChannel 2016-05-26 11:31:24 +05:30
qemu-file.c migration: fix live migration failure with compression 2016-08-11 16:59:53 +05:30
qjson.c qjson: free str 2016-08-08 00:00:24 +04:00
ram.c COLO: Send PVM state to secondary side when do checkpoint 2016-10-30 15:17:39 +05:30
rdma.c migration/rdma: Don't flag an error when we've been told about one 2016-10-13 17:22:38 +02:00
savevm.c Merge qio 2016/10/27 v1 2016-10-28 15:30:55 +01:00
socket.c migration: set name for all I/O channels created 2016-10-27 09:13:10 +02:00
tls.c migration: set name for all I/O channels created 2016-10-27 09:13:10 +02:00
trace-events COLO: Introduce checkpointing protocol 2016-10-30 15:17:39 +05:30
vmstate.c migration: Report values for comparisons 2016-10-13 17:22:38 +02:00
xbzrle.c util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00