[Qemu-devel] [PATCH v5 0/3] ramblock: add hmp command "info ramblock"

Peter Xu posted 3 patches 6 years, 11 months ago
Failed in applying to current master (apply log)
There is a newer version of this series
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        | 15 ++++++++-------
util/cutils.c          | 26 ++++++++++++++++++++++++++
8 files changed, 95 insertions(+), 18 deletions(-)
[Qemu-devel] [PATCH v5 0/3] ramblock: add hmp command "info ramblock"
Posted by Peter Xu 6 years, 11 months ago
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 (3):
  ramblock: add RAMBLOCK_FOREACH()
  utils: provide size_to_str()
  ramblock: add new hmp command "info ramblock"

 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        | 15 ++++++++-------
 util/cutils.c          | 26 ++++++++++++++++++++++++++
 8 files changed, 95 insertions(+), 18 deletions(-)

-- 
2.7.4