[Qemu-devel] [PATCH v3 0/2] ramblock: add hmp command "info ramblock"

Peter Xu posted 2 patches 6 years, 12 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1493287126-19072-1-git-send-email-peterx@redhat.com
Test checkpatch passed
Test docker passed
Test s390x passed
There is a newer version of this series
exec.c                 | 58 ++++++++++++++++++++++++++++++++++++++++----------
hmp-commands-info.hx   | 14 ++++++++++++
hmp.c                  |  6 ++++++
hmp.h                  |  1 +
include/exec/ramlist.h |  6 ++++++
migration/ram.c        | 15 +++++++------
6 files changed, 82 insertions(+), 18 deletions(-)
[Qemu-devel] [PATCH v3 0/2] ramblock: add hmp command "info ramblock"
Posted by Peter Xu 6 years, 12 months ago
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                 | 58 ++++++++++++++++++++++++++++++++++++++++----------
 hmp-commands-info.hx   | 14 ++++++++++++
 hmp.c                  |  6 ++++++
 hmp.h                  |  1 +
 include/exec/ramlist.h |  6 ++++++
 migration/ram.c        | 15 +++++++------
 6 files changed, 82 insertions(+), 18 deletions(-)

-- 
2.7.4