Skip to content

RFC Remove stub mon-protocol-event for block

Wenchao Xia qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest8 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8block: use type MonitorEvent directlyblock.c include/block/block_int.h+2 -21 reply
2/8block: do not include monitor.h in block.cblock.c+0 -11 reply
3/8qapi: move MonitorEvent defineinclude/monitor/monitor.h include/qapi/qmp/qevent.h include/qapi/qmp/types.h+43 -372 replies
4/8qapi: rename MonitorEvent to QEventblock.c include/block/block_int.h include/monitor/monitor.h +4 more+13 -131 reply
5/8block: add a callback layer for common functionsblock.c include/block/block.h+18 -00 replies
6/8block: replace monitor_protocol_event() with callbackblock.c block/qcow2-refcount.c blockjob.c +2 more+27 -60 replies
7/8block: do not include monitor.hinclude/block/block_int.h+0 -10 replies
8/8stubs: remove mon-protocol-event.o in stub objstubs/Makefile.objs tests/Makefile+2 -20 replies

Reviews trailers per patch

3 of 8 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/8R-b
2/8R-b
3/8
4/8R-b
5/8
6/8
7/8
8/8

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] [RFC PATCH 0/8] Remove stub mon-protocol-event for block

This series will remove the usage of symbols of mon-protocol-event in qemu-img, qemu-nbd and qemu-io, in short remove the connetion for block layer.

Background:
I am tring to decouple block layer code with other unnnessary components,
and in ./stub there many symbols that qemu-img linked as fake implemtion. As a first step, I am decouple monitor with block layer code, this is the first part of it.
There are still other stub symbols for monitor, which will be solved later.
It seems error handlering is also link with those symbols, and will adjust that.

Wenchao Xia (8):
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 block: add a callback layer for common functions 6 block: replace monitor_protocol_event() with callback 7 block: do not include monitor.h
7 stubs: remove mon-protocol-event.o in stub obj

 block.c                    |   22 ++++++++++++++++++----
 block/qcow2-refcount.c     |    4 +++-
 blockjob.c                 |   10 ++++++++--
 include/block/block.h      |   12 ++++++++++++
 include/block/block_int.h  |    3 +--
 include/monitor/monitor.h  |   40 ++--------------------------------------
 include/qapi/qmp/qevent.h  |   41 +++++++++++++++++++++++++++++++++++++++++
 include/qapi/qmp/types.h   |    1 +
 monitor.c                  |   12 ++++++------
 stubs/Makefile.objs        |    1 -
 stubs/mon-protocol-event.c |    2 +-
 tests/Makefile             |    3 ++-
 ui/vnc.c                   |    2 +-
 vl.c                       |    4 ++++
 14 files changed, 100 insertions(+), 57 deletions(-)
 create mode 100644 include/qapi/qmp/qevent.h