From: Peter Xu <peterx@redhat.com>
To: qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Markus Armbruster <armbru@redhat.com>,
peterx@redhat.com, "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Subject: [Qemu-devel] [PATCH v7 0/4] ramblock: add hmp command "info ramblock"
Date: Thu, 11 May 2017 20:22:34 +0800 [thread overview]
Message-ID: <1494505358-15287-1-git-send-email-peterx@redhat.com> (raw)
v7:
- patch 1: removed Dave's r-b since the patch conflicted during rebase
- patch 2: add r-b for Markus, with the nice function comment that
provided [Markus]
- patch 3: add r-b for Dave
- patch 4 (new): added new patch to remove assert in size_to_str(),
assuming that would be better.
v6
- patch 2: instead of create a new size_to_str(), abstract the logic
out from print_type_size(), refactor it, to make sure
print_type_size() dumps exactly the same thing as before. (a simple
test with info qtree is done)
- let suffixes be an array of strings [Markus]
v5
- add r-b for Dave on first patch (which I forgot in v4, so I got it
again)
- add one more patch to introduce size_to_str() as patch 2 [Dave]
- let the last patch use the new interface
v4:
- move page_size_to_str() into util/cutil.c [Dave]
v3:
- cast the three PRIx64 addresses using (uint64_t) [Fam]
- add more comment in patch 2 to emphasize that this command is only
suitable for HMP, not QMP [Markus]
v2:
- replace "lx" with "PRIx64" in three places
Sometimes I would like to know ramblock info for a VM. This command
would help. It provides a way to dump ramblock info. Currently the
list is by default sorted by size, though I think it's good enough.
Please review, thanks.
Peter Xu (4):
ramblock: add RAMBLOCK_FOREACH()
utils: provide size_to_str()
ramblock: add new hmp command "info ramblock"
utils: remove assert in size_to_str()
exec.c | 44 +++++++++++++++++++++++++++++++++-----------
hmp-commands-info.hx | 14 ++++++++++++++
hmp.c | 6 ++++++
hmp.h | 1 +
include/exec/ramlist.h | 6 ++++++
include/qemu-common.h | 1 +
migration/ram.c | 13 +++++++------
qapi/string-output-visitor.c | 22 ++++++----------------
util/cutils.c | 31 +++++++++++++++++++++++++++++++
9 files changed, 105 insertions(+), 33 deletions(-)
--
2.7.4
next reply other threads:[~2017-05-11 12:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-11 12:22 Peter Xu [this message]
2017-05-11 12:22 ` [Qemu-devel] [PATCH v7 1/4] ramblock: add RAMBLOCK_FOREACH() Peter Xu
2017-05-11 13:01 ` Dr. David Alan Gilbert
2017-05-11 12:22 ` [Qemu-devel] [PATCH v7 2/4] utils: provide size_to_str() Peter Xu
2017-05-11 13:05 ` Dr. David Alan Gilbert
2017-05-12 4:12 ` Peter Xu
2017-05-11 12:22 ` [Qemu-devel] [PATCH v7 3/4] ramblock: add new hmp command "info ramblock" Peter Xu
2017-05-11 12:22 ` [Qemu-devel] [PATCH v7 4/4] utils: remove assert in size_to_str() Peter Xu
2017-05-11 15:03 ` Eric Blake
2017-05-11 18:22 ` Markus Armbruster
2017-05-11 18:26 ` Eric Blake
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=1494505358-15287-1-git-send-email-peterx@redhat.com \
--to=peterx@redhat.com \
--cc=armbru@redhat.com \
--cc=dgilbert@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).