qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Max Reitz <mreitz@redhat.com>
To: Alberto Garcia <berto@igalia.com>, qemu-devel@nongnu.org
Cc: Stefan Hajnoczi <stefanha@redhat.com>, qemu-block@nongnu.org
Subject: Re: [Qemu-devel] [Qemu-block] [PATCH v3 0/6] Support streaming to an intermediate layer
Date: Wed, 15 Apr 2015 18:27:54 +0200	[thread overview]
Message-ID: <552E918A.3010203@redhat.com> (raw)
In-Reply-To: <cover.1428503789.git.berto@igalia.com>

On 08.04.2015 16:43, Alberto Garcia wrote:
> There's only one change in this series: there's now a list of block
> jobs that is updated everytime a new one is created or destroyed.
>
> This way we can iterate the list directly, rather than searching all
> BlockDriverStates for the ones that own a block job.
>
> Otherwise please check the summary I wrote for the previous series,
> because the rest of the changes are detailed there:
>
>     https://lists.gnu.org/archive/html/qemu-devel/2015-03/msg04798.html
>
> v3:
> - Keep a list of block jobs and make qmp_query_block_jobs() iterate
>    over it.
>
> v2: https://lists.gnu.org/archive/html/qemu-devel/2015-03/msg04798.html
> - The 'block-stream' command does not have a 'node-name' parameter
>    anymore and reuses 'device' for that purpose.
> - Block jobs can now be owned by any intermediate node, and not just
>    by the ones at the root. query-block-jobs is updated to reflect that
>    change.
> - The 'device' parameter of all 'block-job-*' commands can now take a
>    node name.
> - The BlockJobInfo type and all BLOCK_JOB_* events report the node
>    name in the 'device' field if the node does not have a device name.
> - All intermediate nodes are blocked (and checked for blockers) during
>    the streaming operation.
>
> Regards,
>
> Berto
>
> Alberto Garcia (6):
>    block: keep a list of block jobs
>    block: allow block jobs in any arbitrary node
>    block: never cancel a streaming job without running stream_complete()
>    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/mirror.c            |  5 +++--
>   block/stream.c            | 47 ++++++++++++++++++++++++++++++++++++-----
>   blockdev.c                | 53 ++++++++++++++++++++++-------------------------
>   blockjob.c                | 30 ++++++++++++++++++++-------
>   docs/live-block-ops.txt   | 32 +++++++++++++++++-----------
>   docs/qmp/qmp-events.txt   |  8 +++----
>   include/block/blockjob.h  | 14 +++++++++++++
>   include/qapi/qmp/qerror.h |  3 ---
>   qapi/block-core.json      | 28 ++++++++++++++-----------
>   10 files changed, 149 insertions(+), 75 deletions(-)

The concept of the series looks good to me. Would you mind adding some 
test cases, though?

Max

      parent reply	other threads:[~2015-04-15 16:28 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-08 14:43 [Qemu-devel] [PATCH v3 0/6] Support streaming to an intermediate layer Alberto Garcia
2015-04-08 14:43 ` [Qemu-devel] [PATCH 1/6] block: keep a list of block jobs Alberto Garcia
2015-04-15 14:29   ` [Qemu-devel] [Qemu-block] " Max Reitz
2015-04-08 14:43 ` [Qemu-devel] [PATCH 2/6] block: allow block jobs in any arbitrary node Alberto Garcia
2015-04-15 15:22   ` [Qemu-devel] [Qemu-block] " Max Reitz
2015-04-16  8:20     ` Alberto Garcia
2015-04-08 14:43 ` [Qemu-devel] [PATCH 3/6] block: never cancel a streaming job without running stream_complete() Alberto Garcia
2015-04-15 15:29   ` [Qemu-devel] [Qemu-block] " Max Reitz
2015-04-08 14:43 ` [Qemu-devel] [PATCH 4/6] block: Support streaming to an intermediate layer Alberto Garcia
2015-04-15 16:09   ` [Qemu-devel] [Qemu-block] " Max Reitz
2015-04-16  9:36     ` Alberto Garcia
2015-04-16 12:27       ` Eric Blake
2015-04-16 12:34         ` Alberto Garcia
2015-04-17  8:02           ` Kevin Wolf
2015-04-16 14:30     ` Alberto Garcia
2015-04-17 12:46       ` Max Reitz
2015-04-08 14:43 ` [Qemu-devel] [PATCH 5/6] block: Add QMP support for " Alberto Garcia
2015-04-15 16:17   ` [Qemu-devel] [Qemu-block] " Max Reitz
2015-04-08 14:43 ` [Qemu-devel] [PATCH 6/6] docs: Document how to stream " Alberto Garcia
2015-04-15 16:25   ` [Qemu-devel] [Qemu-block] " Max Reitz
2015-04-15 16:27 ` Max Reitz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=552E918A.3010203@redhat.com \
    --to=mreitz@redhat.com \
    --cc=berto@igalia.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).