From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRlrq-0005W1-5Z for qemu-devel@nongnu.org; Tue, 08 May 2012 10:58:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRlro-0001vH-Du for qemu-devel@nongnu.org; Tue, 08 May 2012 10:58:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRlro-0001sk-5K for qemu-devel@nongnu.org; Tue, 08 May 2012 10:58:20 -0400 From: Amos Kong Date: Tue, 08 May 2012 22:58:13 +0800 Message-ID: <20120508145718.4027.86985.stgit@t> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH v11 0/4] support to migrate with IPv6 address List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aliguori@us.ibm.com, quintela@redhat.com, jasowang@redhat.com, mdroth@linux.vnet.ibm.com, qemu-devel@nongnu.org, owasserm@redhat.com, laine@redhat.com Those patches updated help functions in qemu-socket.c, and used them in migrate-tcp.c to 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 Changes from v6: - merge error process and nonblock support together - fix leak of repeatedly error_set() - coding style fix - fix EWOULDBLOCK process Changes from v7: - posix: let EWOULDBLOCK fall through to CONNECT_FAILED path - add unknown error process - fix typo Changes from v8: - reuse rc variable - fix a NULL pointer dereference Changes from v9: - handle non-blocking correctly if errp is NULL Changes from v10: - send out the whole series, no change - add 'Reviewed-by' --- Amos Kong (4): qerror: add five qerror strings sockets: change inet_connect() to support nonblock socket sockets: use error class to pass listen error use inet_listen()/inet_connect() to support ipv6 migration migration-tcp.c | 77 +++++++++++++++---------------------------------------- migration.c | 14 ++++++---- migration.h | 7 +++-- nbd.c | 4 +-- qemu-char.c | 4 +-- qemu-sockets.c | 60 ++++++++++++++++++++++++++++++++++++------- qemu_socket.h | 10 ++++--- qerror.c | 20 ++++++++++++++ qerror.h | 15 +++++++++++ ui/vnc.c | 5 ++-- vl.c | 7 ++++- 11 files changed, 138 insertions(+), 85 deletions(-) -- Amos Kong