Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHOsc-0004Ae-LP for qemu-devel@nongnu.org; Thu, 18 Jun 2009 17:10:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHOsX-00048B-Ip for qemu-devel@nongnu.org; Thu, 18 Jun 2009 17:10:42 -0400 Received: from [199.232.76.173] (port=40797 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHOsX-000481-D9 for qemu-devel@nongnu.org; Thu, 18 Jun 2009 17:10:37 -0400 Received: from smtp6-g21.free.fr ([212.27.42.6]:34968) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHOsW-0002Er-KT for qemu-devel@nongnu.org; Thu, 18 Jun 2009 17:10:37 -0400 From: "Jean-Christophe Dubois" Subject: Re: [Qemu-devel] [PATCH v4] avoid compilation warning/errors on up to date Date: Thu, 18 Jun 2009 23:10:22 +0200 References: <200906172322.35496.jcd@tribudubois.net> <20090618171639.1a3c1364@doriath> <4A3AA47F.9090004@codemonkey.ws> In-Reply-To: <4A3AA47F.9090004@codemonkey.ws> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200906182310.23357.jcd@tribudubois.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org, Luiz Capitulino Le jeudi 18 juin 2009 22:33:03 Anthony Liguori, vous avez =E9crit : > Luiz Capitulino wrote: > > On Thu, 18 Jun 2009 01:16:37 +0200 > > > > "Jean-Christophe Dubois" wrote: > >> And whatever I have added is a lot more robust than what was before. > >> Once again, please just show me where my patch is incorrect and I > >> will fix it. > > > > I really missed this v4, sorry for that and thanks for letting me know. > > > > I think the first step is to do one logical change at a time. You > > could, for example do: > > > > 1. Add qemu_read() and qemu_write() > > We already have these in various places. The problem is, we often want > different semantics. We don't always want to retry partial results > (like for live migration). We need a more rationalized approach to this. Anthony, I am not sure to understand what you mean here. Are you against th= e=20 qemu_read/qemu_write approach? Are you hinting that your preference is that= =20 each and every read/write call handles its error case in its own local way?