migration: use QEMUFile for migration channel lifetime
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Feb 2013 16:36:41 +0000 (17:36 +0100)
committerJuan Quintela <quintela@redhat.com>
Mon, 11 Mar 2013 12:32:02 +0000 (13:32 +0100)
commitf8bbc1286337a8506162b5785babe6f2a7de2476
tree15b6553d15211d4bc73afcfa1a18a3e4b875cc21
parent3f2d38faab97f4d676c41868a8243997b2aab7cb
migration: use QEMUFile for migration channel lifetime

As a start, use QEMUFile to store the destination and close it.
qemu_get_fd gets a file descriptor that will be used by the write
callbacks.

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
include/migration/migration.h
migration-exec.c
migration-fd.c
migration-tcp.c
migration-unix.c
migration.c
savevm.c