Hello, I added support to the Block Stream API for streaming to an intermediate layer.
I followed the proposed API from the wiki, which simply adds an additional 'top' parameter to block-stream specifying the image that data is written to: http://wiki.qemu.org/Features/Snapshots#Streaming_to_an_Intermediate_Layer_.5Bproposal.5D I split the work in three patches, I think the code is pretty straightforward and doesn't need much explanation, but feedback and questions are welcome. Regards, Berto Alberto Garcia (3): block: Support streaming to an intermediate layer block: Add QMP support for streaming to an intermediate layer docs: Document how to stream to an intermediate layer block.c | 4 +++- block/stream.c | 49 ++++++++++++++++++++++++++++++++++++----------- blockdev.c | 19 ++++++++++++++---- docs/live-block-ops.txt | 28 ++++++++++++++++++--------- hmp.c | 2 +- include/block/block_int.h | 19 +++++++++--------- include/qapi/qmp/qerror.h | 3 +++ qapi/block-core.json | 18 +++++++++++++---- qmp-commands.hx | 2 +- 9 files changed, 104 insertions(+), 40 deletions(-) -- 2.1.4