From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Xu <peterx@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] question: about exec/poison.h
Date: Mon, 30 Nov 2015 11:36:41 +0100 [thread overview]
Message-ID: <565C26B9.3010200@redhat.com> (raw)
In-Reply-To: <20151130094708.GA8728@pxdev.xzpeter.org>
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.
> 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).
Paolo
next prev parent reply other threads:[~2015-11-30 10:36 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 [this message]
2015-11-30 10:45 ` Peter Xu
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=565C26B9.3010200@redhat.com \
--to=pbonzini@redhat.com \
--cc=peterx@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).