From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: Re: [PATCH v2] tools/ocaml/xb: Correct calculations of data/space the ring Date: Tue, 10 Nov 2015 15:09:33 +0000 Message-ID: <20151110150933.GD28720@zion.uk.xensource.com> References: <1447152404-3672-1-git-send-email-andrew.cooper3@citrix.com> <20151110145917.GC28720@zion.uk.xensource.com> <20151110150613.GC3067@var.bordeaux.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20151110150613.GC3067@var.bordeaux.inria.fr> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Samuel Thibault , Wei Liu , Andrew Cooper , Xen-devel , Ian Campbell , Ian Jackson , David Scott List-Id: xen-devel@lists.xenproject.org On Tue, Nov 10, 2015 at 04:06:13PM +0100, Samuel Thibault wrote: > Wei Liu, on Tue 10 Nov 2015 14:59:17 +0000, wrote: > > I think I will port this patch to cxenstored at some point. As far as I > > can tell cxenstored's data / space calculation is bogus in the same way. > > The low-level function return short reads and writes, yes, but that is > handled at a higher level: initialize_fds sets timeout to 0 when there > is still room (domain_can_read() or domain_can_write()). So it will > improve performance a little bit, but not fix actual bugs. > Yeah, that's true. Just IMHO it would be better if we can actually make low level routine correct. That's orthogonal to what the upper layer is doing and should prevent latent bug if upper layer logic changes. Wei. > Samuel -- Wei.