From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:57727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl3nu-0006P3-PV for qemu-devel@nongnu.org; Wed, 11 Jan 2012 14:25:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rl3np-0002JI-P4 for qemu-devel@nongnu.org; Wed, 11 Jan 2012 14:25:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:23475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl3np-0002J3-HA for qemu-devel@nongnu.org; Wed, 11 Jan 2012 14:25:41 -0500 Date: Wed, 11 Jan 2012 15:58:26 -0200 From: Luiz Capitulino Message-ID: <20120111155826.1823e96d@doriath> In-Reply-To: <1325858501-25741-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1325858501-25741-1-git-send-email-stefanha@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v4 00/15] block: generic image streaming List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , Marcelo Tosatti , qemu-devel@nongnu.org On Fri, 6 Jan 2012 14:01:26 +0000 Stefan Hajnoczi wrote: > This series adds the 'block_stream' command which copies the contents of a > backing file into the image file while the VM is running. The series bui= lds on > the zero detection features which I sent out before Christmas. I suggest > grabbing my git tree to try it out without merging this dependency: >=20 > https://github.com/stefanha/qemu/tree/image-streaming-api >=20 > The image streaming HMP/QMP commands are documented in the patch and also > described here: >=20 > http://wiki.qemu.org/Features/LiveBlockMigration/ImageStreamingAPI =46rom a QMP perspective (and given that we'll make this obsolete when we have a proper async API): Acked-by: Luiz Capitulino >=20 > The basic idea is to execute 'block_stream virtio0' while the guest is ru= nning. > Progress can be monitored using 'info block-jobs'. When the streaming > operation completes it raises a QMP event. >=20 > Note: The last patch includes includes a Python test script called > test-stream.py, I do not propose to merge it. When run in a QEMU source = tree > it performs basic image streaming QMP tests. >=20 > v4: > * Drop SQMP/EQMP docs from qmp-commands.hx [Luiz] > * Follow QAPI doc conventions [Luiz] > * Document QMP events in QMP/qmp-events.txt [Luiz] > * Protect against hotplug, resize, eject, etc [Kevin] > * Move block job functions from header to block.c [Kevin] > * Return error from bdrg_change_backing_file() [Kevin] > * Merge Marcelo's block_stream base partial streaming series [Marcelo] >=20 > Marcelo Tosatti (4): > block: add bdrv_find_backing_image > add QERR_BASE_ID_NOT_FOUND > block stream: add support for partial streaming > add doc to describe live block operations >=20 > Stefan Hajnoczi (11): > coroutine: add co_sleep_ns() coroutine sleep function > block: check bdrv_in_use() before blockdev operations > block: add BlockJob interface for long-running operations > block: add image streaming block job > block: rate-limit streaming operations > qmp: add block_stream command > qmp: add block_job_set_speed command > qmp: add block_job_cancel command > qmp: add query-block-jobs > blockdev: make image streaming safe across hotplug > test: add image streaming test cases >=20 > Makefile.objs | 2 + > QMP/qmp-events.txt | 53 ++++++++++++ > block.c | 133 ++++++++++++++++++++++++++++++ > block.h | 5 + > block/stream.c | 192 +++++++++++++++++++++++++++++++++++++++++= ++ > block_int.h | 44 ++++++++++ > blockdev.c | 199 +++++++++++++++++++++++++++++++++++++++++= +++- > docs/live-block-ops.txt | 58 +++++++++++++ > hmp-commands.hx | 41 +++++++++ > hmp.c | 68 +++++++++++++++ > hmp.h | 4 + > monitor.c | 13 +++ > monitor.h | 2 + > qapi-schema.json | 115 ++++++++++++++++++++++++++ > qemu-coroutine-sleep.c | 38 +++++++++ > qemu-coroutine.h | 6 ++ > qerror.c | 8 ++ > qerror.h | 6 ++ > qmp-commands.hx | 24 ++++++ > test-stream.py | 208 +++++++++++++++++++++++++++++++++++++++++= ++++++ > trace-events | 9 ++ > 21 files changed, 1227 insertions(+), 1 deletions(-) > create mode 100644 block/stream.c > create mode 100644 docs/live-block-ops.txt > create mode 100644 qemu-coroutine-sleep.c > create mode 100644 test-stream.py >=20