xemu/migration
Denis V. Lunev 6dcf66681a migration: fix inability to save VM after snapshot
The following sequence of operations fails:
    virsh start vm
    virsh snapshot-create vm
    virshh save vm --file file
with the following error
    error: Failed to save domain vm to file
    error: internal error: unable to execute QEMU command 'migrate':
    There's a migration process in progress

The problem is that qemu_savevm_state() calls migrate_init() which sets
migration state to MIGRATION_STATUS_SETUP and never cleaned it up.
This patch do the job.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
CC: Juan Quintela <quintela@redhat.com>
CC: Amit Shah <amit.shah@redhat.com>
Message-Id: <1466003203-26263-1-git-send-email-den@openvz.org>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
2016-06-17 18:23:57 +05:30
..
block.c migration/block: Convert saving to BlockBackend 2016-06-08 10:21:08 +02:00
exec.c migration: rename functions to starting migrations 2016-06-16 09:51:37 +05:30
fd.c migration: rename functions to starting migrations 2016-06-16 09:51:37 +05:30
Makefile.objs migration: add support for encrypting data with TLS 2016-05-26 11:32:13 +05:30
migration.c migration: Don't use *_to_cpup() and cpu_to_*w() 2016-06-17 18:23:49 +05:30
postcopy-ram.c os-posix: include sys/mman.h 2016-06-16 18:39:03 +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: remove qemu_get_fd method from QEMUFile 2016-05-26 11:32:21 +05:30
qjson.c migration/qjson: Drop gratuitous use of QOM 2016-05-23 14:16:12 +05:30
ram.c Postcopy: Add stats on page requests 2016-06-16 09:50:07 +05:30
rdma.c migration: rename functions to starting migrations 2016-06-16 09:51:37 +05:30
savevm.c migration: fix inability to save VM after snapshot 2016-06-17 18:23:57 +05:30
socket.c migration: rename functions to starting migrations 2016-06-16 09:51:37 +05:30
tls.c migration: rename functions to starting migrations 2016-06-16 09:51:37 +05:30
vmstate.c migration: Trace improvements 2016-06-17 18:23:53 +05:30
xbzrle.c util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00