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 <wdon...@linux.vnet.ibm.com> > Signed-off-by: Chunyan Liu <cy...@suse.com> > --- > 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 <stefa...@redhat.com>