From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v3 5/6] tools/libxl: Extend datacopier to support reading into a buffer Date: Wed, 18 Mar 2015 11:18:46 +0000 Message-ID: <1426677526.18247.328.camel@citrix.com> References: <1426512594-11585-1-git-send-email-ross.lagerwall@citrix.com> <1426512594-11585-5-git-send-email-ross.lagerwall@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1426512594-11585-5-git-send-email-ross.lagerwall@citrix.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: Ross Lagerwall Cc: Andrew Cooper , Ian Jackson , Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, 2015-03-16 at 13:29 +0000, Ross Lagerwall wrote: > Currently a datacopier may source its data from an fd or local buffer, but its > destination must be an fd. For migration v2, libxl needs to read from the > migration stream into a local buffer. > > Implement a "read into local buffer" mode, invoked when readbuf is set and > writefd is -1. On success, the callback passes the number of bytes read. > > Signed-off-by: Ross Lagerwall > [Rewrite commit message] > Signed-off-by: Andrew Cooper Acked-by: Ian Campbell