qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Adam Litke <agl@us.ibm.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: Zhi Yong Wu <zwu.kernel@gmail.com>,
	Anthony Liguori <aliguori@us.ibm.com>,
	Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 0/4] Image Streaming API
Date: Tue, 30 Aug 2011 08:32:23 -0500	[thread overview]
Message-ID: <20110830133223.GA29130@aglitke.rchland.ibm.com> (raw)
In-Reply-To: <CAJSP0QUy38HKVYGY8EjJrmyM93hc82ty-fV17YnWWOQymABz8Q@mail.gmail.com>

On Tue, Aug 30, 2011 at 10:28:09AM +0100, Stefan Hajnoczi wrote:
> On Tue, Aug 30, 2011 at 4:19 AM, Zhi Yong Wu <zwu.kernel@gmail.com> wrote:
> > On Tue, Aug 23, 2011 at 8:58 PM, Stefan Hajnoczi
> > <stefanha@linux.vnet.ibm.com> wrote:
> >> These patches put in place the image streaming QMP/HMP commands and
> >> documentation.  Image streaming itself is not implemented by this patch series
> >> but the HMP/QMP commands that libvirt uses are implemented to return
> >> NotSupported.
> >>
> >> The Image Streaming API can be used to copy the contents of a backing file into
> >> the image file while the guest is running.  The API is described on the wiki:
> >> http://wiki.qemu.org/Features/LiveBlockMigration/ImageStreamingAPI
> >
> > If query-block-jobs returns one percent value, it will be more
> > readable and convenient for users.
> 
> QMP is not a human interface.  Although a percentage value is good for
> progress bars, the absolute value is also interesting in terms of how
> much work is being done.  By providing an end value and a current
> value the management tool can display either or both.

I agree.  In QMP, we should report the best, most granular information we have
and allow management tools to present it as they see fit.  For example, a
management tool may wish to present streaming progress as a spinner (rather than
a progress bar).  In that case you would want to see the numbers updated
whenever progress has been made.

      reply	other threads:[~2011-08-30 14:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-23 12:58 [Qemu-devel] [PATCH 0/4] Image Streaming API Stefan Hajnoczi
2011-08-23 12:58 ` [Qemu-devel] [PATCH 1/4] qmp: add block_stream command Stefan Hajnoczi
2011-08-23 16:33   ` Adam Litke
2011-08-30  9:43     ` Stefan Hajnoczi
2011-08-23 12:58 ` [Qemu-devel] [PATCH 2/4] qmp: add block_job_set_speed command Stefan Hajnoczi
2011-08-23 12:58 ` [Qemu-devel] [PATCH 3/4] qmp: add block_job_cancel command Stefan Hajnoczi
2011-08-23 12:58 ` [Qemu-devel] [PATCH 4/4] qmp: add query-block-jobs Stefan Hajnoczi
2011-08-23 16:28   ` Adam Litke
2011-08-29 19:16 ` [Qemu-devel] [PATCH 0/4] Image Streaming API Anthony Liguori
2011-08-29 19:45   ` Luiz Capitulino
2011-08-30  3:19 ` Zhi Yong Wu
2011-08-30  9:28   ` Stefan Hajnoczi
2011-08-30 13:32     ` Adam Litke [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=20110830133223.GA29130@aglitke.rchland.ibm.com \
    --to=agl@us.ibm.com \
    --cc=aliguori@us.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    --cc=stefanha@linux.vnet.ibm.com \
    --cc=zwu.kernel@gmail.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).