From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2bsC-0002lw-Vg for qemu-devel@nongnu.org; Wed, 10 Jun 2015 05:00:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2bs7-0005Dv-Vy for qemu-devel@nongnu.org; Wed, 10 Jun 2015 05:00:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2bs7-0005CT-QN for qemu-devel@nongnu.org; Wed, 10 Jun 2015 05:00:31 -0400 Date: Wed, 10 Jun 2015 14:30:25 +0530 From: Amit Shah Message-ID: <20150610090025.GA15422@grmbl.mre> References: <1429031053-4454-1-git-send-email-dgilbert@redhat.com> <1429031053-4454-12-git-send-email-dgilbert@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1429031053-4454-12-git-send-email-dgilbert@redhat.com> Subject: Re: [Qemu-devel] [PATCH v6 11/47] Return path: Open a return path on QEMUFile for sockets List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" Cc: aarcange@redhat.com, yamahata@private.email.ne.jp, quintela@redhat.com, qemu-devel@nongnu.org, pbonzini@redhat.com, david@gibson.dropbear.id.au On (Tue) 14 Apr 2015 [18:03:37], Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > Postcopy needs a method to send messages from the destination back to > the source, this is the 'return path'. > > Wire it up for 'socket' QEMUFile's using a dup'd fd. I'm not too sure we should create a new fd; just use the same one since sockets are supposed to be used that way. I suspect, though, that using an entirely new connection could simplify a few things (like the next patch). In a private chat, Dave mentioned he'd give this some thought (and give it a go) -- hope we don't end up needing to do things the dup way. Amit