tools/libxl: Improvements to libxl__datacopier
v3 cover tools/libxl: Improvements to libxl__datacopier
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(-)
Signature · 1 line
2.1.0
Ian Campbell
AppliedQuoted 1 line · Ross Lagerwall
To support migration v2, we need far more flexibility out of the datacopier.
Applied, thanks.