From: Ross Lagerwall Subject: [PATCH v3 0/6] tools/libxl: Improvements to libxl__datacopier Date: Mon, 16 Mar 2015 13:27:12 +0000 Message-ID: <1426512438-11505-1-git-send-email-ross.lagerwall@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Wei Liu , Ian Campbell , wency@cn.fujitsu.com, andrew.cooper3@citrix.com, Ian Jackson , Ross Lagerwall List-Id: xen-devel@lists.xenproject.org To support migration v2, we need far more flexibility out of the datacopier. This series adds the ability to read from an fd into a local buffer and to copy a specific number of bytes rather than to EOF. It also contains bugfixes related to writing from a local buffer, and POLLHUP handling. Changes in v3: * Rename maxread to bytes_to_read with -1 being a sentinel for "until EOF" * Update a couple of comments Changes in v2: * Rewrite most commit message (but no code change) * Rework the POLLHUP fix from scratch Andrew Cooper (2): tools/libxl: Introduce min and max macros tools/libxl: Adjust datacopiers POLLHUP handling when the fd is also readable Ross Lagerwall (3): tools/libxl: Avoid overrunning static buffer with prefixdata tools/libxl: Allow limiting amount copied by datacopier tools/libxl: Extend datacopier to support reading into a buffer Wen Congyang (1): tools/libxl: Update datacopier to support sending data only tools/libxl/libxl_aoutils.c | 93 +++++++++++++++++++++++++++--------------- tools/libxl/libxl_bootloader.c | 2 + tools/libxl/libxl_dom.c | 1 + tools/libxl/libxl_internal.h | 25 +++++++++++- 4 files changed, 86 insertions(+), 35 deletions(-) -- 2.1.0