Skip to content

QEMU Monitor Protocol

Luiz Capitulino qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 2 repliesIn review

Changes in v1 from the cover letter

- query- commands support
- Better error classes
- Using the stream parser
- Improved patch split
- Several smalls changes and fixes

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20monitor: Introduce MONITOR_USE_CONTROL flagmonitor.c monitor.h+7 -00 replies
2/20monitor: Command-line flag to enable control modemonitor.c monitor.h qemu-options.hx +1 more+29 -60 replies
3/20monitor: Introduce monitor_call_handler()monitor.c+13 -70 replies
4/20monitor: Introduce monitor_find_command()monitor.c+15 -70 replies
5/20monitor: Rename monitor_handle_command()monitor.c+3 -30 replies
6/20monitor: Introduce 'info commands'monitor.c+37 -00 replies
7/20QError: Add errors needed by QMPqerror.c qerror.h+42 -00 replies
8/20QMP: Initial supportmonitor.c+51 -20 replies
9/20QMP: Output supportmonitor.c+44 -40 replies
10/20QMP: do_info() checksmonitor.c+15 -30 replies
11/20QMP: Input supportmonitor.c+240 -10 replies
12/20QMP: Allow 'query-' commandsmonitor.c+17 -30 replies
13/20QMP: Asynchronous events infrastructuremonitor.c monitor.h qemu-tool.c+60 -00 replies
14/20QMP: Introduce basic asynchronous eventsmonitor.c monitor.h vl.c+29 -20 replies
15/20QMP: Disable monitor print functionsmonitor.c+11 -30 replies
16/20QMP: Introduce README fileQMP/README+51 -00 replies
17/20QMP: Introduce specificationQMP/qmp-spec.txt+192 -00 replies
18/20QMP: Introduce qmp-events.txtQMP/qmp-events.txt+26 -00 replies
19/20QMP: Introduce qmp-shellQMP/qmp-shell QMP/qmp.py+144 -00 replies
20/20QMP: Introduce vm-infoQMP/vm-info+32 -00 replies

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 00/20] QEMU Monitor Protocol

Hi,

This series has a number of improvements over v0 and is a serious
candidate for inclusion.

Something I'd like to make clear is that QMP is still unstable:
some commands output are being fixed and most of the error handling has not been done yet.

It might look scary to have an unstable protocol merged, on the other
hand several issues will only come to light with real people testing QMP (yeah, I'm not real ;) ).

I have two solutions for this problem, both assumes QMP is merged:

1. We merge it ASAP and rush to fix its issues until the release date

2. We add a compile time switch (eg. --enable-protocol) and disable QMP by default

Now, regarding this series, the biggest visible change is that we now
support 'query-' commands.

For example, instead of:

{ "execute": "info", "arguments": { "item": "version" } }

Clients should do:

{ "execute": "query-version" }

A summarized changelog follows.

changelog
---------

v0 -> v1

- query- commands support
- Better error classes
- Using the stream parser
- Improved patch split
- Several smalls changes and fixes