Skip to content

replace QEMUOptionParameter with QemuOpts

Chunyan Liu qemu-devel 9 versions – Applied

Status from this message: Thanks, applied to my block tree:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v28 Latest33 patches 10 repliesApplied
  2. v2733 patches 8 repliesSuperseded
  3. v2531 patches 0 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v2431 patches9 repliesSuperseded
v2332 patches26 repliesSuperseded
v2225 patches79 repliesSuperseded
v2125 patches2 repliesSuperseded
v2026 patches31 repliesSuperseded
v1925 patches12 repliesSuperseded

Changes to v27 from the cover letter

* rebase to git master (code has been updated in this part since v27 sent so rebase to make the patch series work.)

Patches in v28 Applied

#Subject and filesSizeRepliesApplied
1/33QemuOpts: move find_desc_by_name ahead for later callingutil/qemu-option.c+14 -140 replies
2/33QemuOpts: repurpose qemu_opts_print to replace print_option_parametersinclude/qemu/option.h util/qemu-option.c+5 -70 replies
3/33QemuOpts: add def_value_str to QemuOptDescinclude/qemu/option.h util/qemu-option.c+50 -70 replies
4/33qapi: output def_value_str when query command line optionsqapi-schema.json qmp-commands.hx util/qemu-config.c+10 -10 replies
5/33QemuOpts: change opt->name|str from (const char *) to (char *)include/qemu/option_int.h qapi/opts-visitor.c util/qemu-option.c+11 -70 replies
6/33QemuOpts: move qemu_opt_del ahead for later callingutil/qemu-option.c+8 -80 replies
7/33QemuOpts: add qemu_opt_get_*_del functions for replace workinclude/qemu/option.h util/qemu-option.c+110 -130 replies
8/33QemuOpts: add qemu_opts_print_help to replace print_option_helpinclude/qemu/option.h util/qemu-option.c+14 -00 replies
9/33QemuOpts: add conversion between QEMUOptionParameter to QemuOptsinclude/qemu/option.h util/qemu-option.c+162 -00 replies
10/33QemuOpts: add qemu_opts_append to replace append_option_parametersinclude/qemu/option.h util/qemu-option.c+72 -00 replies
11/33QemuOpts: check NULL input for qemu_opts_delutil/qemu-option.c+4 -00 replies
12/33change block layer to support both QemuOpts and QEMUOptionParamterblock.c block/cow.c block/qcow.c +11 more+184 -1140 replies
13/33vvfat.c: handle cross_driver's create_options and create_optsblock/vvfat.c+17 -70 replies
14/33cow.c: replace QEMUOptionParameter with QemuOptsblock/cow.c+26 -280 replies
15/33gluster.c: replace QEMUOptionParameter with QemuOptsblock/gluster.c+42 -390 replies
16/33iscsi.c: replace QEMUOptionParameter with QemuOptsblock/iscsi.c+16 -180 replies
17/33nfs.c: replace QEMUOptionParameter with QemuOptsblock/nfs.c+3 -90 replies
18/33qcow.c: replace QEMUOptionParameter with QemuOptsblock/qcow.c+36 -360 replies
19/33QemuOpts: export qemu_opt_findinclude/qemu/option.h util/qemu-option.c+2 -10 replies
20/33qcow2.c: replace QEMUOptionParameter with QemuOptsblock/qcow2.c+139 -1220 replies
21/33qed.c: replace QEMUOptionParameter with QemuOptsblock/qed.c block/qed.h+61 -560 replies
22/33raw-posix.c: replace QEMUOptionParameter with QemuOptsblock/raw-posix.c+27 -320 replies
23/33raw-win32.c: replace QEMUOptionParameter with QemuOptsblock/raw-win32.c+19 -190 replies
24/33raw_bsd.c: replace QEMUOptionParameter with QemuOptsblock/raw_bsd.c+15 -120 replies
25/33rbd.c: replace QEMUOptionParameter with QemuOptsblock/rbd.c+30 -330 replies
26/33sheepdog.c: replace QEMUOptionParameter with QemuOptsblock/sheepdog.c+56 -550 replies
27/33ssh.c: replace QEMUOptionParameter with QemuOptsblock/ssh.c+15 -170 replies
28/33vdi.c: replace QEMUOptionParameter with QemuOptsblock/vdi.c+35 -380 replies
29/33vhdx.c: replace QEMUOptionParameter with QemuOptsblock/vhdx.c block/vhdx.h+48 -520 replies
30/33vmdk.c: replace QEMUOptionParameter with QemuOptsblock/vmdk.c+63 -600 replies
31/33vpc.c: replace QEMUOptionParameter with QemuOptsblock/vpc.c+34 -280 replies
32/33cleanup QEMUOptionParameterblock.c block/cow.c block/gluster.c +21 more+67 -6300 replies
33/33QemuOpts: cleanup tmp 'allocated' member from QemuOptsListinclude/qemu/option.h util/qemu-option.c+3 -300 replies

Reviews trailers per patch

29 of 33 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEric BlakeLeandro DorileoStefan Hajnoczi
SeriesR-b
1/33R-b R-b
2/33R-b
3/33R-b
4/33R-b R-b R-b
5/33R-b R-b
6/33R-b R-b
7/33R-b
8/33R-b R-b
9/33R-b R-b R-b
10/33R-b R-b R-b
11/33R-b R-b R-b
12/33R-b
13/33R-b
14/33R-b R-b
15/33R-b R-b
16/33R-b
17/33R-b R-b
18/33R-b
19/33
20/33
21/33R-b R-b
22/33R-b
23/33R-b
24/33R-b
25/33R-b
26/33R-b
27/33R-b
28/33R-b
29/33R-b
30/33R-b
31/33R-b
32/33
33/33

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v28 thread

Cover letter [Qemu-devel] [PATCH v28 00/33] replace QEMUOptionParameter with QemuOpts

This patch series is to replace QEMUOptionParameter with QemuOpts, so that only one Qemu Option structure is kept in QEMU code.

---
Changes to v27:
* rebase to git master (code has been updated in this part since v27 sent so rebase to make the patch series work.)

All patches are also available from:
https://github.com/chunyanliu/qemu/commits/QemuOpts

Chunyan Liu (33):
QemuOpts: move find_desc_by_name ahead for later calling
QemuOpts: repurpose qemu_opts_print to replace
print_option_parameters
QemuOpts: add def_value_str to QemuOptDesc
qapi: output def_value_str when query command line options
QemuOpts: change opt->name|str from (const char *) to (char *)
QemuOpts: move qemu_opt_del ahead for later calling
QemuOpts: add qemu_opt_get_*_del functions for replace work
QemuOpts: add qemu_opts_print_help to replace print_option_help
QemuOpts: add conversion between QEMUOptionParameter to QemuOpts
QemuOpts: add qemu_opts_append to replace append_option_parameters
QemuOpts: check NULL input for qemu_opts_del
change block layer to support both QemuOpts and QEMUOptionParamter vvfat.c: handle cross_driver's create_options and create_opts cow.c: replace QEMUOptionParameter with QemuOpts gluster.c: replace QEMUOptionParameter with QemuOpts iscsi.c: replace QEMUOptionParameter with QemuOpts nfs.c: replace QEMUOptionParameter with QemuOpts qcow.c: replace QEMUOptionParameter with QemuOpts
QemuOpts: export qemu_opt_find
qcow2.c: replace QEMUOptionParameter with QemuOpts qed.c: replace QEMUOptionParameter with QemuOpts raw-posix.c: replace QEMUOptionParameter with QemuOpts raw-win32.c: replace QEMUOptionParameter with QemuOpts raw_bsd.c: replace QEMUOptionParameter with QemuOpts rbd.c: replace QEMUOptionParameter with QemuOpts sheepdog.c: replace QEMUOptionParameter with QemuOpts ssh.c: replace QEMUOptionParameter with QemuOpts
vdi.c: replace QEMUOptionParameter with QemuOpts vhdx.c: replace QEMUOptionParameter with QemuOpts vmdk.c: replace QEMUOptionParameter with QemuOpts vpc.c: replace QEMUOptionParameter with QemuOpts cleanup QEMUOptionParameter
QemuOpts: cleanup tmp 'allocated' member from QemuOptsList

 block.c                    |  99 ++++----
 block/cow.c                |  52 ++--
 block/gluster.c            |  73 +++---
 block/iscsi.c              |  32 ++-
 block/nfs.c                |  10 +-
 block/qcow.c               |  72 +++---
 block/qcow2.c              | 259 ++++++++++----------
 block/qed.c                | 112 +++++----
 block/qed.h                |   3 +-
 block/raw-posix.c          |  55 ++---
 block/raw-win32.c          |  38 +--
 block/raw_bsd.c            |  25 +-
 block/rbd.c                |  61 +++--
 block/sheepdog.c           | 105 ++++----
 block/ssh.c                |  30 ++-
 block/vdi.c                |  71 +++---
 block/vhdx.c               |  97 ++++----
 block/vhdx.h               |   1 +
 block/vmdk.c               | 121 +++++-----
 block/vpc.c                |  60 ++---
 block/vvfat.c              |  14 +-
 include/block/block.h      |   7 +-
 include/block/block_int.h  |   9 +-
 include/qemu/option.h      |  53 +---
 include/qemu/option_int.h  |   4 +-
 qapi-schema.json           |   5 +-
 qapi/opts-visitor.c        |  10 +-
 qemu-img.c                 |  91 ++++---
 qmp-commands.hx            |   2 +
 tests/qemu-iotests/049.out |   2 +-
 tests/qemu-iotests/061.out |   2 +-
 util/qemu-config.c         |   4 +
 util/qemu-option.c         | 590 ++++++++++++++++++++-------------------------
 33 files changed, 1037 insertions(+), 1132 deletions(-)
Signature · 1 line
1.7.12.4