Skip to content

fix query-memdev not repporting IDs of memory backends

Igor Mammedov qemu-devel 2 versions – Applied

Status from this message: Applied to machine-next. Thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesApplied
  2. v13 patches 10 repliesSuperseded

Changes in v2 from the cover letter

* fix mistakes in commit messages/change them as suggested
* extend 3/3 commit message to explain why it's ok to use 'id'
* 3/3 set 'id' property directly instead of injecting it back into qdict.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3qom: remove unused headerqom/object_interfaces.c+0 -10 replies
2/3reuse user_creatable_add_opts() instead of user_creatable_add() in monitorhmp.c include/qom/object_interfaces.h qom/object_interfaces.c+18 -750 replies
3/3fix qmp/hmp query-memdev not reporting IDs of memory backendsbackends/hostmem.c docs/qmp-commands.txt hmp.c +4 more+41 -41 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/3] fix query-memdev not repporting IDs of memory backends

Changelog:
since v1:
* fix mistakes in commit messages/change them as suggested
* extend 3/3 commit message to explain why it's ok to use 'id'
* 3/3 set 'id' property directly instead of injecting it back into qdict.

Series is a couple of preparratory cleanups which simplify fix and a fix itself.

Before fix HMP 'info memdevs' for CLI:
qemu-system-x86_64 -object memory-backend-ram,id=mem0,size=1G outputs:

memory backend: 0

    size:  1073741824
    merge: true
    dump: true
    prealloc: false
    policy: default
    host nodes: 128

after fix:

memory backend: mem0

    size:  1073741824
    merge: true
    dump: true
    prealloc: false
    policy: default
    host nodes: 128

it should help to avoid remembering hotplugged IDs as they could be queried back via HMP/QMP interface.

Igor Mammedov (3):
qom: remove unused header
reuse user_creatable_add_opts() instead of user_creatable_add() in
monitor
fix qmp/hmp query-memdev not reporting IDs of memory backends

 include/qom/object_interfaces.h | 17 ---------
 include/sysemu/hostmem.h        |  1 +
 backends/hostmem.c              | 26 ++++++++++++++
 docs/qmp-commands.txt           |  1 +
 hmp.c                           | 10 ++----
 numa.c                          |  3 ++
 qapi-schema.json                |  3 ++
 qom/object_interfaces.c         | 78 ++++++++++++-----------------------------
 8 files changed, 59 insertions(+), 80 deletions(-)
Signature · 1 line
2.7.4