summaryrefslogtreecommitdiffstats
path: root/linux-user/alpha
diff options
context:
space:
mode:
authorChunyan Liu2014-06-05 11:20:42 +0200
committerStefan Hajnoczi2014-06-16 11:23:20 +0200
commit09722032e15669e653991923613761602c745fa0 (patch)
treec25f90910ebc8f4a1c2bed88c8ee280b3253a669 /linux-user/alpha
parentQemuOpts: repurpose qemu_opts_print to replace print_option_parameters (diff)
downloadqemu-09722032e15669e653991923613761602c745fa0.tar.gz
qemu-09722032e15669e653991923613761602c745fa0.tar.xz
qemu-09722032e15669e653991923613761602c745fa0.zip
QemuOpts: add def_value_str to QemuOptDesc
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, print it. Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com> Signed-off-by: Chunyan Liu <cyliu@suse.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'linux-user/alpha')
0 files changed, 0 insertions, 0 deletions