Skip to content

trivial patches for event, error and monitor

Wenchao Xia qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13block: use type MonitorEvent directlyblock.c include/block/block_int.h+2 -20 replies
2/13block: do not include monitor.h in block.cblock.c+0 -12 replies
3/13qapi: move MonitorEvent defineinclude/monitor/monitor.h include/qapi/qmp/qevent.h include/qapi/qmp/types.h+68 -373 replies
4/13qapi: rename MonitorEvent to QEventblock.c include/block/block_int.h include/monitor/monitor.h +4 more+13 -130 replies
5/13error: define struct Error in only one placeinclude/qapi/error.h qobject/qerror.c util/error.c+4 -143 replies
6/13error: remove error_printf_unless_qmp()hw/usb/bus.c hw/usb/hcd-ehci.c include/qemu/error-report.h +1 more+3 -152 replies
7/13error: make error_print_loc() staticinclude/qemu/error-report.h util/qemu-error.c+1 -21 reply
8/13error: don't set sep when print prognameutil/qemu-error.c+2 -33 replies
9/13error: print progname with error_vprintf()util/qemu-error.c+10 -12 replies
10/13qerror: deref once in qerror_report()qobject/qerror.c+0 -12 replies
11/13qerror: folder qerror emit logicqobject/qerror.c+16 -121 reply
12/13monitor: hide *cur_mon in monitor_get_fd()dump.c include/monitor/monitor.h migration-fd.c +4 more+13 -82 replies
13/13stubs: do not call monitor_printf()stubs/pci-drive-hot-add.c+0 -12 replies

Reviews trailers per patch

6 of 13 patches have a Reviewed-by or Acked-by.

PatchEric BlakePaolo Bonzini
1/13R-b
2/13R-b
3/13
4/13R-b
5/13
6/13R-b
7/13R-b
8/13
9/13
10/13
11/13R-b
12/13
13/13

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/13] trivial patches for event, error and monitor

I was trying to decouple components between block and qemu code, and reduce stub files. I found fixing some small code problem found could help, so pick up those which can benifit upstream code either and send them as separate series.

patch 1 to 4 comes from my RFC series earlier with title:
Remove stub mon-protocol-event for block

Wenchao Xia (13):
1 block: use type MonitorEvent directly
2 block: do not include monitor.h in block.c
3 qapi: move MonitorEvent define
4 qapi: rename MonitorEvent to QEvent
5 error: define struct Error in only one place
6 error: remove error_printf_unless_qmp()
7 error: make error_print_loc() static
8 error: don't set sep when print progname
9 error: print progname with error_vprintf()
10 qerror: deref once in qerror_report()
11 qerror: folder qerror emit logic
12 monitor: hide *cur_mon in monitor_get_fd()
13 stubs: do not call monitor_printf()

 block.c                     |    3 +-
 dump.c                      |    2 +-
 hw/usb/bus.c                |    2 +-
 hw/usb/hcd-ehci.c           |    4 +-
 include/block/block_int.h   |    2 +-
 include/monitor/monitor.h   |   42 ++-------------------------
 include/qapi/error.h        |    5 ++-
 include/qapi/qmp/qevent.h   |   66 +++++++++++++++++++++++++++++++++++++++++++
 include/qapi/qmp/types.h    |    1 +
 include/qemu/error-report.h |    2 -
 migration-fd.c              |    2 +-
 monitor.c                   |   19 ++++++++----
 qmp.c                       |    2 +-
 qobject/qerror.c            |   36 ++++++++++-------------
 stubs/get-fd.c              |    2 +-
 stubs/mon-protocol-event.c  |    2 +-
 stubs/pci-drive-hot-add.c   |    1 -
 ui/vnc.c                    |    2 +-
 util/error.c                |    6 ----
 util/qemu-error.c           |   27 ++++++++----------
 util/qemu-sockets.c         |    4 +-
 21 files changed, 127 insertions(+), 105 deletions(-)
 create mode 100644 include/qapi/qmp/qevent.h