[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH V26 02/32] QemuOpts: add def_value_str to QemuOp
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH V26 02/32] QemuOpts: add def_value_str to QemuOptDesc |
Date: |
Tue, 6 May 2014 15:14:31 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Apr 29, 2014 at 05:10:26PM +0800, Chunyan Liu wrote:
> Add def_value_str (default value) to QemuOptDesc, to replace function of the
> default value in QEMUOptionParameter.
>
> Improve qemu_opts_get_* functions: if find opt, return opt->str; otherwise,
> if desc->def_value_str is set, return desc->def_value_str; otherwise, return
> input defval.
>
> Improve qemu_opts_print: if option is set, print opt->str; otherwise, if
> desc->def_value_str is set, also print it. It will replace
> print_option_parameters.
>
> Signed-off-by: Dong Xu Wang <address@hidden>
> Signed-off-by: Chunyan Liu <address@hidden>
> ---
> Changes to V25:
> * split v25 patch into two: this one and next one.
> * this patch is the same as v22 which is reviewed-by Eric.
>
> include/qemu/option.h | 3 ++-
> util/qemu-option.c | 56
> ++++++++++++++++++++++++++++++++++++++++++---------
> 2 files changed, 49 insertions(+), 10 deletions(-)
Modulo Eric's comment:
Reviewed-by: Stefan Hajnoczi <address@hidden>