qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] question: about exec/poison.h


From: Paolo Bonzini
Subject: Re: [Qemu-devel] question: about exec/poison.h
Date: Mon, 30 Nov 2015 11:36:41 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0


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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]