From: Eric Blake <eblake@redhat.com>
To: Dong Xu Wang <wdongxu@linux.vnet.ibm.com>
Cc: kwolf@redhat.com, wdongxu@cn.ibm.com, qemu-devel@nongnu.org,
stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH V17 0/9] replace QEMUOptionParameter with QemuOpts parser
Date: Wed, 17 Jul 2013 06:54:01 -0600 [thread overview]
Message-ID: <51E693E9.3010000@redhat.com> (raw)
In-Reply-To: <1374053388-17431-1-git-send-email-wdongxu@linux.vnet.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 2270 bytes --]
On 07/17/2013 03:29 AM, Dong Xu Wang wrote:
> These patches will replace QEMUOptionParameter with QemuOpts. Change logs
> please go to each patch's commit message.
>
> Dong Xu Wang (9):
> qemu-option: add def_value_str in QemuOptDesc struct and rewrite
> qemu_opts_print
> qemu-option: avoid duplication of default value in QemuOpts
> qemu-option: create four QemuOptsList related functions
> qemu-option: create some QemuOpts functons
> block: use QemuOpts support in block layer
> qapi: query-command-line-options outputs def_value_str
> qemu-option: remove QEMUOptionParameter related functions and struct
> qemu-option: make qemu_opts_del accept opts being NULL
> qemu-option: use qemu_opts_del without judging NULL
>
>
> --
Ouch - by putting your additional comments after an 'end-of-message'
marker, you made it harder for me to reply. (Sane mailers intentionally
drop text after a "-- " line when replying).
> V17 add qemu_opts_del's support when opts is NULL, and made changes
> based on Eric's comments. I tried to split PATCH 5 into small pieces,
> but I found it is very hard, bdrv_* functions are all using
> QEMUOptionParameter or QemuOpts, if I split them, I have to support two
> parsers in block.c and qemu-img.c, it will make code very hard to read,
Yes, if you split the patches, then there will be a window of time in
the series where you have to support BOTH parsers at the same time. But
since the existing parser is already present, what's so hard about that?
By having two different callbacks, one with the old signature and one
with the new, with exactly one of the callbacks being non-NULL, it
should be relatively easy to decide which of the two callbacks to use.
> so I leave them in one big patch, I am sorry it is realy hard to review.
I still think that the ease of review that would be added by splitting
the patch is worth making the effort. Yes, it may be harder for you,
but if the end result is that more people are willing to review the
patch, then the community as a whole spends less collective time, and
the series will be accepted sooner.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 621 bytes --]
next prev parent reply other threads:[~2013-07-17 12:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-17 9:29 [Qemu-devel] [PATCH V17 0/9] replace QEMUOptionParameter with QemuOpts parser Dong Xu Wang
2013-07-17 9:29 ` [Qemu-devel] [PATCH V17 1/9] qemu-option: add def_value_str in QemuOptDesc struct and rewrite qemu_opts_print Dong Xu Wang
2013-07-17 9:29 ` [Qemu-devel] [PATCH V17 2/9] qemu-option: avoid duplication of default value in QemuOpts Dong Xu Wang
2013-07-17 9:29 ` [Qemu-devel] [PATCH V17 3/9] qemu-option: create four QemuOptsList related functions Dong Xu Wang
2013-07-17 9:29 ` [Qemu-devel] [PATCH V17 4/9] qemu-option: create some QemuOpts functons Dong Xu Wang
2013-07-17 9:29 ` [Qemu-devel] [PATCH V17 5/9] block: use QemuOpts support in block layer Dong Xu Wang
2013-07-17 9:48 ` Dong Xu Wang
2013-07-17 9:29 ` [Qemu-devel] [PATCH V17 6/9] qapi: query-command-line-options outputs def_value_str Dong Xu Wang
2013-07-17 9:29 ` [Qemu-devel] [PATCH V17 7/9] qemu-option: remove QEMUOptionParameter related functions and struct Dong Xu Wang
2013-07-17 9:29 ` [Qemu-devel] [PATCH V17 8/9] qemu-option: make qemu_opts_del accept opts being NULL Dong Xu Wang
2013-07-17 9:50 ` Dong Xu Wang
2013-07-17 11:48 ` Kevin Wolf
2013-07-17 9:29 ` [Qemu-devel] [PATCH V17 9/9] qemu-option: use qemu_opts_del without judging NULL Dong Xu Wang
2013-07-17 12:54 ` Eric Blake [this message]
2013-07-17 14:11 ` [Qemu-devel] [PATCH V17 0/9] replace QEMUOptionParameter with QemuOpts parser Dong Xu Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51E693E9.3010000@redhat.com \
--to=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=wdongxu@cn.ibm.com \
--cc=wdongxu@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).