ToDo/QMP

From QEMU
Revision as of 09:56, 12 October 2016 by Paolo Bonzini (talk | contribs) (Created page with ' ==== redo/fix query-command-line-options ==== Redhat Bug 1058567 - query-command-line-options command lost some options Developer: Amos Kong <akong AT redhat.com> Upstream di…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

redo/fix query-command-line-options

Redhat Bug 1058567 - query-command-line-options command lost some options

Developer: Amos Kong <akong AT redhat.com>

Upstream discussion:

QemuOpt is a new interface, not all the options have arguments converted to this interface. Some legacy options were lost (Upstream can accept this legacy issue). But currently some new options without arguments was lost in the return output, this should be fixed.

Problem exists in current query-command-line-options:

  • some new options haven't arguments can't be queried. (eg: -enable-fips)
  • some legcy options have arguments can't be queried. (eg: -vnc display)

Patches:

Add full introspection support

This is about adding a command which returns all QMP types, commands (input and output parameters) and events.

Redhat Bug 557939 - QMP: Full introspection support

target: 1.6 (failed) target: 1.8 (....)

Amos Kong is working on this:

  1. V1: http://marc.info/?l=qemu-devel&m=137059998004419&w=2
  2. V2: https://lists.gnu.org/archive/html/qemu-devel/2013-07/msg02494.html
  3. V4: http://marc.info/?l=qemu-devel&m=139048842504757&w=2

V5: reduce the output size, improve the speed

more:

  1. convert events to qapi-schema.json, support query of events

Generate doc from qapi-schema.json

The qapi-schema.json file contains full QMP documentation, but it's in JSON format. We should be able to generate a human friendlier doc from it (eg. a manpage).

WIP/RFC: https://github.com/elmarco/qemu/commits/qapi-doc