From: Paolo Bonzini <pbonzini@redhat.com>
To: Dong Xu Wang <wdongxu@linux.vnet.ibm.com>
Cc: kwolf@redhat.com, lcapitulino@redhat.com, qemu-devel@nongnu.org,
armbru@redhat.com
Subject: Re: [Qemu-devel] [RFC v2 7/7] remove QEMUOptionParameter
Date: Thu, 27 Sep 2012 14:03:27 +0200 [thread overview]
Message-ID: <5064408F.3020605@redhat.com> (raw)
In-Reply-To: <1348722865-20564-8-git-send-email-wdongxu@linux.vnet.ibm.com>
Il 27/09/2012 07:14, Dong Xu Wang ha scritto:
> remove QEMUOptionParameter, and use QemuOpts and QemuOptsList.
>
> Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com>
> ---
> block.c | 88 ++++++------
> block.h | 5 +-
> block/Makefile.objs | 9 +-
> block/qcow2.c | 175 ++++++++++++-----------
> block/raw-posix.c | 68 ++++-----
> block/raw.c | 31 +++--
> block_int.h | 6 +-
> qemu-config.c | 3 +
> qemu-img.c | 58 ++++----
> qemu-option.c | 408 +++++++++++++++------------------------------------
> qemu-option.h | 45 +-----
> 11 files changed, 347 insertions(+), 549 deletions(-)
The patch is already quite big, so please move the qemu-option.c changes
to separate patches.
For example, patch 7 could add def_value and use it in qemu_opts_print.
Patch 8 should add append_opts_list, free_opts_list, print_opts_list.
Patch 9 should touch only the block layer. Patch 10 should remove the
now-unuse QEMUOptionParameter code.
(Regarding def_value, it is quite unintuitive that you need to specify
the value again when calling qemu_opt_get_*. Perhaps,
qemu_opts_validate could instead walk through descriptors that are not
present but have a default value, and add new options with the default
value to the QemuOpts object).
Paolo
next prev parent reply other threads:[~2012-09-27 12:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-27 5:14 [Qemu-devel] [RFC v2 0/7] replace QEMUOptionParameter with QemuOpts parser Dong Xu Wang
2012-09-27 5:14 ` [Qemu-devel] [RFC v2 1/7] qemu-option: qemu_opt_set_bool(): fix code duplication Dong Xu Wang
2012-09-27 11:55 ` Paolo Bonzini
2012-09-27 5:14 ` [Qemu-devel] [RFC v2 2/7] qemu-option: opt_set(): split it up into more functions Dong Xu Wang
2012-09-27 5:14 ` [Qemu-devel] [RFC v2 3/7] qemu-option: qemu_opts_validate(): fix duplicated code Dong Xu Wang
2012-09-27 5:14 ` [Qemu-devel] [RFC v2 4/7] introduce qemu_opts_create_nofail function Dong Xu Wang
2012-09-27 5:14 ` [Qemu-devel] [RFC v2 5/7] use qemu_opts_create_nofail Dong Xu Wang
2012-09-27 5:14 ` [Qemu-devel] [RFC v2 6/7] create new function: qemu_opt_set_number Dong Xu Wang
2012-09-27 11:56 ` Paolo Bonzini
2012-09-27 5:14 ` [Qemu-devel] [RFC v2 7/7] remove QEMUOptionParameter Dong Xu Wang
2012-09-27 12:03 ` Paolo Bonzini [this message]
2012-09-28 6:42 ` 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=5064408F.3020605@redhat.com \
--to=pbonzini@redhat.com \
--cc=armbru@redhat.com \
--cc=kwolf@redhat.com \
--cc=lcapitulino@redhat.com \
--cc=qemu-devel@nongnu.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.