migration: clean up server sockets and handlers before invoking process_incoming_migration
A first step towards making a common "suffix" for all migration protocols,and moving it to process_incoming_migration.
Reviewed-by: Orit Wasserman <owasserm@redhat.com>...
migration: use migrate_fd_close in migrate_fd_cleanup
migrate_fd_cleanup will usually close the file descriptor viabuffered_file_close's call to migrate_fd_close. However, in the caseof s->file == NULL it is "inlining" migrate_fd_close (almost: there is a...
migration: use closesocket, not close
Windows requires this. Migration does not quite work under Windowsbut let's be uniform across QEMU.
Reviewed-by: Orit Wasserman <owasserm@redhat.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
migration: xxx_close will only be called once
No need to test s->fd again, it is tested in the caller.
migration: close socket QEMUFile from socket_close
The common suffix now is process_incoming_migration+qemu_fclose.
migration: move qemu_fclose to process_incoming_migration
The common suffix is now just process_incoming_migration.
migration: replace qemu_stdio_fd with qemu_get_fd
migration: unify stdio-based QEMUFile operations
Now that qemu_fseek does not exist anymore, there is no reason to doan fseek before fread/fwrite when operating on an stdio file.Thus, unify the get/put_buffer callbacks used by qemu_fopenwith those used for pipes....
migration: consolidate QEMUFile methods in a single QEMUFileOps struct
migration: add qemu_get_fd
View all revisions | View revisions
Also available in: Atom