Received: from eggs.gnu.org ([140.186.70.92]:47489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHXcC-0004IK-Sp for qemu-devel@nongnu.org; Wed, 04 May 2011 04:39:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHXc8-0001rv-CP for qemu-devel@nongnu.org; Wed, 04 May 2011 04:39:24 -0400 Received: from nog.sh.bytemark.co.uk ([212.110.161.168]:56044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHXc8-0001rD-6v for qemu-devel@nongnu.org; Wed, 04 May 2011 04:39:20 -0400 From: nick@bytemark.co.uk Date: Wed, 4 May 2011 09:39:02 +0100 Message-Id: <1304498343-9141-1-git-send-email-nick@bytemark.co.uk> Subject: [Qemu-devel] IPv6 support for TCP migrations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: nick@lupine.me.uk Hi, Currently migration-tcp.c uses the IPv4-only socket functions, making migrations over IPv6 impossible. Following is a tentative patch that switches it to use inet_connect() and inet_listen(). However, the patch loses the non-blocking connect() behaviour seen with the previous code. I'm not sure how much of an issue this is - if connect() blocks here, does it block execution of the VM? If so, I guess we need a non-blocking form of inet_connect(), or some way of replicating the behaviour - it would potentially be needed for my NBD reconnection patches too? I can see that a blocking connect() might not be an issue while the KVM process is starting up, but could cause problems if we try to reconnect while emulation is ongoing. Thoughts? /Nick