From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl8Ty-0002Qm-Fx for qemu-devel@nongnu.org; Sun, 02 Nov 2014 22:39:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xl8Tq-0007MO-IP for qemu-devel@nongnu.org; Sun, 02 Nov 2014 22:39:06 -0500 Received: from ozlabs.org ([103.22.144.67]:58802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl8Tq-0007LQ-75 for qemu-devel@nongnu.org; Sun, 02 Nov 2014 22:38:58 -0500 Date: Mon, 3 Nov 2014 14:05:50 +1100 From: David Gibson Message-ID: <20141103030550.GF8949@voom.redhat.com> References: <1412358473-31398-1-git-send-email-dgilbert@redhat.com> <1412358473-31398-11-git-send-email-dgilbert@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HCdXmnRlPgeNBad2" Content-Disposition: inline In-Reply-To: <1412358473-31398-11-git-send-email-dgilbert@redhat.com> Subject: Re: [Qemu-devel] [PATCH v4 10/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, lilei@linux.vnet.ibm.com, quintela@redhat.com, cristian.klein@cs.umu.se, qemu-devel@nongnu.org, amit.shah@redhat.com, yanghy@cn.fujitsu.com --HCdXmnRlPgeNBad2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 03, 2014 at 06:47:16PM +0100, Dr. David Alan Gilbert (git) wrot= e: > From: "Dr. David Alan Gilbert" >=20 > Postcopy needs a method to send messages from the destination back to > the source, this is the 'return path'. >=20 > Wire it up for 'socket' QEMUFile's using a dup'd fd. This doesn't seem like the right abstraction to me. In particular I can't really see how you'd implement this for anything other than socket. I'd suggest instead creating new "open" helper functions (within the QEMUFile code) that open both a forward and return path simultaneously. --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --HCdXmnRlPgeNBad2 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJUVvEOAAoJEGw4ysog2bOSNU4QAK3tIrt0twMHta9/DqOvsHsL 6Cky4fqHqcFkgO165q/n14o0jxNQrHvyJzUDCXcAWhHpHqk/lyvalEMkpPVNMjjK ucEFqQAxG5JEdPvcr1toXURIK6P5BGNiWJPvfbF9Px87TQTqbA1u6SIJSSfcxX5L j1jPiOtUmtGjWDNQdRRcMjVw2oUlsJCG/wXoA0fg8mzXRFWS5NV/uS0yiMOJTTAg YVaCvuxHQQuDlbzeCidSJbBX1PdYbtDb291V96HvffP/r4GtGtp9V1Z/HEpSlRAR 0m+OtLY9BD6uG2p3HHgekW+vK03+oR77zjDBOQ9yekL1GXsf7t9BlLMZ+9h7Nfsl 97GUVHxcYC6HIphlsVXaO0Vxrl+X+3eBYteYkqnEf0gCN24WJLjhNh0AwYZomUrL trGpn70hgoXqdqL3NQCOmuksuzrGNjIwpbNe9Gm81FOzL5N96sAgDw/NbLd9pJPO 24TR/l+R1qIxCAB4pmC8z6oPDbDRz9ce/iqz7hlDWYtPZA6AGWNLs/AfH7C6Lsp5 Z6wr//x030ZgtCTN+JHC/7jUKCeoRDNhrqd7ty9uR1V8IH20W2a3ADvuJQgLiVgm pMqfhFdAbEJmDkNPWgDFPgoxoKbA0skhLwkn/YFVK+I9q28J2Jdff/8XLqevfcAp fWrDnbrMVjjqITLumAhL =RKle -----END PGP SIGNATURE----- --HCdXmnRlPgeNBad2--