Those patches make tcp migration use the help functions in qemu-socket.c for support IPv6 migration.
Changes from v1: - split different changes to small patches, it will be easier to review - fixed some problem according to Kevin's comment Changes from v2: - fix issue of returning real error - set s->fd to -1 when parse fails, won't call migrate_fd_error() Changes from v3: - try to use help functions in qemu-socket.c Changes from v4: - introduce set_socket_error() to restore real errno - fix connect error process Changes from v5: - use error class to pass socket error --- Amos Kong (5): sockets: change inet_connect() to support nonblock socket qerror: add five qerror strings sockets: use error class to pass connect error sockets: use error class to pass listen error use inet_listen()/inet_connect() to support ipv6 migration migration-tcp.c | 74 ++++++++++++-------------------------------------- migration.c | 14 +++++---- migration.h | 7 +++-- nbd.c | 4 +-- qemu-char.c | 4 +-- qemu-sockets.c | 82 +++++++++++++++++++++++++++++++++++++++++++------------ qemu_socket.h | 10 ++++--- qerror.c | 20 +++++++++++++ qerror.h | 15 ++++++++++ ui/vnc.c | 5 ++- vl.c | 6 +++- 11 files changed, 147 insertions(+), 94 deletions(-) -- Amos Kong