Skip to content

QMP: implementing qmp_cpu

Daniel Henrique Barboza qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2qmp.c: (re)implement qmp_cpuhmp.c qapi-schema.json qmp.c+17 -98 replies
2/2cpus.c: change qmp_query_cpus 'value->current' logiccpus.c hmp.c+2 -61 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH v1 0/2] QMP: implementing qmp_cpu

This small series (re)implements qmp_cpu inside qmp.c, adapting docs and hmp code accordingly. A fix was also made in qmp_query_cpus in resulting of the qmp_cpu usage.

The first and unique qmp_cpu implementation so far was made in commit 755f196898, ("qapi: Convert the cpu command"). This is a 6 year old commit that was part of the following series:

https://lists.gnu.org/archive/html/qemu-devel/2011-10/msg02767.html

I don't understand in the original context why the qmp_cpu function was left blank while implementing hmp_cpu, but today I believe we can have both qmp_cpu and hmp_cpu co-existing.

Daniel Henrique Barboza (2):
qmp.c: (re)implement qmp_cpu
cpus.c: change qmp_query_cpus 'value->current' logic

 cpus.c           |  2 +-
 hmp.c            | 14 ++++----------
 qapi-schema.json | 14 +++++++++++---
 qmp.c            |  4 +++-
 4 files changed, 19 insertions(+), 15 deletions(-)
Signature · 1 line
2.13.6