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(-)

-- 
2.13.6


Reply via email to