qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v4 0/2] ramblock: add hmp command "info ramblock"
@ 2017-05-08  6:00 Peter Xu
  2017-05-08  6:00 ` [Qemu-devel] [PATCH v4 1/2] ramblock: add RAMBLOCK_FOREACH() Peter Xu
  2017-05-08  6:00 ` [Qemu-devel] [PATCH v4 2/2] ramblock: add new hmp command "info ramblock" Peter Xu
  0 siblings, 2 replies; 6+ messages in thread
From: Peter Xu @ 2017-05-08  6:00 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Markus Armbruster, peterx, Dr. David Alan Gilbert

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 (2):
  ramblock: add RAMBLOCK_FOREACH()
  ramblock: add new hmp command "info ramblock"

 exec.c                 | 42 +++++++++++++++++++++++++++++++-----------
 hmp-commands-info.hx   | 14 ++++++++++++++
 hmp.c                  |  6 ++++++
 hmp.h                  |  1 +
 include/exec/ramlist.h |  6 ++++++
 include/qemu-common.h  |  1 +
 migration/ram.c        | 15 ++++++++-------
 util/cutils.c          | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 8 files changed, 113 insertions(+), 18 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-05-09 11:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-08  6:00 [Qemu-devel] [PATCH v4 0/2] ramblock: add hmp command "info ramblock" Peter Xu
2017-05-08  6:00 ` [Qemu-devel] [PATCH v4 1/2] ramblock: add RAMBLOCK_FOREACH() Peter Xu
2017-05-08 16:23   ` Dr. David Alan Gilbert
2017-05-08  6:00 ` [Qemu-devel] [PATCH v4 2/2] ramblock: add new hmp command "info ramblock" Peter Xu
2017-05-08 19:21   ` Dr. David Alan Gilbert
2017-05-09 11:23     ` Peter Xu

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).