ramblock: add hmp command "info ramblock"
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v8 Latest3 patches 3 repliesIn review
- v74 patches 6 repliesSuperseded
- v63 patches 4 repliesSuperseded
Earlier versions · 5
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v5 | 3 patches | 2 replies | Superseded | |
| v4 | 2 patches | 3 replies | Superseded | |
| v3 | 2 patches | 5 replies | Superseded | |
| v2 | 2 patches | 2 replies | Superseded | |
| v1 | 2 patches | 7 replies | Superseded |
Changes in v8 from the cover letter
- patch 1: add r-b for Dave
- patch 2: use "uint64_t" for size_to_str() parameter, remove assert() since it's useless now [Dave]
- drop patch 4
Patches in v8 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | ramblock: add RAMBLOCK_FOREACH()exec.c include/ migration/ | +23 | 0 replies | |
| 2/3 | utils: provide size_to_str()include/ qapi/ util/ | +32 | 2 replies | |
| 3/3 | ramblock: add new hmp command "info ramblock"exec.c hmp-commands-info.hx hmp.c +2 more | +44 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Dr. David Alan Gilbert | Markus Armbruster |
|---|---|---|
| 1/3 | R-b | |
| 2/3 | R-b | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Qemu-devel] [PATCH v8 0/3] ramblock: add hmp command "info ramblock"
v8:
- patch 1: add r-b for Dave
- patch 2: use "uint64_t" for size_to_str() parameter, remove assert() since it's useless now [Dave]
- drop patch 4
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 (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 | 13 +++++++------ qapi/string-output-visitor.c | 22 ++++++---------------- util/cutils.c | 25 +++++++++++++++++++++++++ 9 files changed, 99 insertions(+), 33 deletions(-)
Signature · 1 line
2.7.4