From: Ian Jackson Subject: Re: [PATCH RESEND] libxl: Do not generate short block in libxl__datacopier_prefixdata Date: Tue, 12 Nov 2013 17:25:54 +0000 Message-ID: <21122.25762.564581.207602@mariner.uk.xensource.com> References: <21122.23583.137859.666007@mariner.uk.xensource.com> <1384277013.10204.104.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1384277013.10204.104.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Andrew Cooper , "xen-devel@lists.xensource.com" , Chunyan Liu List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [PATCH RESEND] libxl: Do not generate short block in libxl__datacopier_prefixdata"): > On Tue, 2013-11-12 at 16:49 +0000, Ian Jackson wrote: > > From 70f4755fba5e6a39e4f8ad55aff2d21f6aa8ff21 Mon Sep 17 00:00:00 2001 > > From: Ian Jackson > > Date: Tue, 3 Sep 2013 13:41:46 +0100 > > Subject: [PATCH] libxl: Do not generate short block in > > libxl__datacopier_prefixdata > > > > libxl__datacopier_prefixdata would prepend a deliberately short block > > (not just a half-full one, but one with a short buffer) to the > > dc->bufs queue. However, this is wrong because datacopier_readable > > will find it and try to continue to fill it up. > > > > Instead, allocate a full-sized buffer. > > > > Signed-off-by: Ian Jackson > > Tested-by: Chunyan Liu > > Acked-by: Ian Campbell Thanks, Committed-by: Ian Jackson I have put it on my backport list too. Ian.