Skip to content

monitor: Wean core off QError, and other cleanups

Markus Armbruster qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest21 patches 6 repliesIn review
  2. v220 patches 8 repliesSuperseded
  3. v120 patches 35 repliesSuperseded

Changes in v3 from the cover letter

* Trivially rebased, R-bys retained.
* PATCH 11: New [Luiz]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21monitor: Drop broken, unused asynchronous command interfaceinclude/monitor/monitor.h monitor.c+2 -730 replies
2/21monitor: Clean up after previous commitmonitor.c+11 -290 replies
3/21monitor: Improve and document client_migrate_info protocol errorhmp-commands.hx monitor.c qmp-commands.hx+12 -120 replies
4/21monitor: Convert client_migrate_info to QAPIhmp-commands.hx hmp.c hmp.h +3 more+57 -270 replies
5/21monitor: Use traditional command interface for HMP drive_delblockdev.c hmp-commands.hx include/sysemu/blockdev.h+6 -80 replies
6/21monitor: Use traditional command interface for HMP device_addhmp-commands.hx hmp.c hmp.h +1 more+8 -40 replies
7/21monitor: Use trad. command interface for HMP pcie_aer_inject_errorhmp-commands.hx hw/pci/pci-stub.c hw/pci/pcie_aer.c +1 more+25 -350 replies
8/21monitor: Drop unused "new" HMP command interfacemonitor.c+1 -210 replies
9/21monitor: Propagate errors through qmp_check_client_args()monitor.c+33 -320 replies
10/21monitor: Propagate errors through qmp_check_input_obj()monitor.c+10 -90 replies
11/21monitor: Propagate errors through invalid_qmp_mode()monitor.c+10 -84 replies
12/21monitor: Wean monitor_protocol_emitter() off mon->errormonitor.c+7 -60 replies
13/21monitor: Inline monitor_has_error() into its only callermonitor.c+1 -60 replies
14/21monitor: Limit QError use to command handlersmonitor.c+14 -122 replies
15/21monitor: Rename handle_user_command() to handle_hmp_command()monitor.c+5 -50 replies
16/21monitor: Rename monitor_control_read(), monitor_control_event()monitor.c+4 -100 replies
17/21monitor: Unbox Monitor member mc and rename to qmpmonitor.c+15 -180 replies
18/21monitor: Drop do_qmp_capabilities()'s superfluous QMP checkmonitor.c+1 -50 replies
19/21monitor: Turn int command_mode into bool in_command_modemonitor.c+12 -110 replies
20/21monitor: Rename monitor_ctrl_mode() to monitor_is_qmp()monitor.c+8 -60 replies
21/21monitor: Change return type of monitor_cur_is_qmp() to boolinclude/monitor/monitor.h monitor.c stubs/mon-is-qmp.c+7 -50 replies

Reviews trailers per patch

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

PatchEric BlakeLuiz Capitulino
1/21R-b R-b
2/21R-b R-b
3/21R-b R-b
4/21R-b R-b
5/21R-b R-b
6/21R-b R-b
7/21R-b R-b
8/21R-b R-b
9/21R-b R-b
10/21R-b R-b
11/21R-b R-b
12/21R-b R-b
13/21R-b R-b
14/21R-b R-b R-b
15/21R-b R-b
16/21R-b R-b
17/21R-b R-b
18/21R-b R-b
19/21R-b R-b
20/21R-b R-b
21/21R-b R-b

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

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 00/21] monitor: Wean core off QError, and other cleanups

Command handlers still use QError. Left for another day.

v3:
* Trivially rebased, R-bys retained.
* PATCH 11: New [Luiz]

v2:
* Trivially rebased, R-bys retained.
* PATCH 01: Drop another async remnant [Eric]
* PATCH 01+02+18: Improve commit messages
* PATCH 03+04: client_migrate_info still hasn't been implemented VNC, de-document [Eric, Gerd]
* PATCH 16+19: Don't inline monitor_ctrl_mode() into monitor_init() [Eric]
* PATCH 20: Use false instead of 0 [Eric]

Markus Armbruster (21):
monitor: Drop broken, unused asynchronous command interface
monitor: Clean up after previous commit
monitor: Improve and document client_migrate_info protocol error
monitor: Convert client_migrate_info to QAPI
monitor: Use traditional command interface for HMP drive_del
monitor: Use traditional command interface for HMP device_add
monitor: Use trad. command interface for HMP pcie_aer_inject_error
monitor: Drop unused "new" HMP command interface
monitor: Propagate errors through qmp_check_client_args()
monitor: Propagate errors through qmp_check_input_obj()
monitor: Propagate errors through invalid_qmp_mode()
monitor: Wean monitor_protocol_emitter() off mon->error
monitor: Inline monitor_has_error() into its only caller
monitor: Limit QError use to command handlers
monitor: Rename handle_user_command() to handle_hmp_command()
monitor: Rename monitor_control_read(), monitor_control_event()
monitor: Unbox Monitor member mc and rename to qmp
monitor: Drop do_qmp_capabilities()'s superfluous QMP check
monitor: Turn int command_mode into bool in_command_mode
monitor: Rename monitor_ctrl_mode() to monitor_is_qmp()
monitor: Change return type of monitor_cur_is_qmp() to bool

 blockdev.c                |   9 +-
 hmp-commands.hx           |  20 +--
 hmp.c                     |  23 +++
 hmp.h                     |   2 +
 hw/pci/pci-stub.c         |  14 +-
 hw/pci/pcie_aer.c         |  39 +++--
 include/monitor/monitor.h |   7 +-
 include/sysemu/blockdev.h |   2 +-
 include/sysemu/sysemu.h   |   4 +-
 monitor.c                 | 398 ++++++++++++++++------------------------------
 qapi-schema.json          |  19 +++
 qmp-commands.hx           |  16 +-
 stubs/mon-is-qmp.c        |   4 +-
 13 files changed, 232 insertions(+), 325 deletions(-)
Signature · 1 line
1.9.3