From: Peter Xu <peterx@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] question: about exec/poison.h
Date: Mon, 30 Nov 2015 18:45:22 +0800 [thread overview]
Message-ID: <20151130104520.GC8728@pxdev.xzpeter.org> (raw)
In-Reply-To: <565C26B9.3010200@redhat.com>
On Mon, Nov 30, 2015 at 11:36:41AM +0100, Paolo Bonzini wrote:
>
>
> On 30/11/2015 10:47, Peter Xu wrote:
> > So from what I understand from your reply, I could include the
> > percentage value into "query-dump", right? :)
>
> If you have the written and total bytes in the QMP reply, you can use
> total*100/written to compute the percentage in the HMP return value.
>
> If total and written do not produce the percentage, you need to add
> another numerator and denominator pair to the QMP reply.
Then I will use written/total numbers in QMP reply.
>
> > Actually, I think it would be cooler if we could have them in both
> > QMP/HMP messages (maybe I would better prefer percentage comparing
> > to written/total bytes, since it is more directly human
> > readable).
>
> For HMP yes. QMP need not be human readable, it only needs to be a good
> API (which sometimes means being less human readable).
Ok. Thanks.
Peter
>
> Paolo
prev parent reply other threads:[~2015-11-30 10:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-30 3:47 [Qemu-devel] question: about exec/poison.h Peter Xu
2015-11-30 8:06 ` Markus Armbruster
2015-11-30 8:46 ` Peter Xu
2015-11-30 9:12 ` Paolo Bonzini
2015-11-30 9:28 ` Markus Armbruster
2015-11-30 9:48 ` Peter Xu
2015-11-30 9:47 ` Peter Xu
2015-11-30 10:36 ` Paolo Bonzini
2015-11-30 10:45 ` Peter Xu [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=20151130104520.GC8728@pxdev.xzpeter.org \
--to=peterx@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).