qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v6 05/22] qemu-option: Add qemu_config_parse_qdi


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH v6 05/22] qemu-option: Add qemu_config_parse_qdict()
Date: Thu, 19 Dec 2013 15:15:46 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 12/19/2013 12:47 PM, Max Reitz wrote:
> This function basically parses command-line options given as a QDict
> replacing a config file.
> 
> For instance, the QDict {"section.opt1": 42, "section.opt2": 23}
> corresponds to the config file:
> 
> [section]
> opt1 = 42
> opt2 = 23

Thanks for the examples; that helped in looking at the code.

> Signed-off-by: Max Reitz <address@hidden>
> ---
>  include/qemu/config-file.h |  6 +++
>  util/qemu-config.c         | 95 
> ++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 101 insertions(+)

> +
> +static void config_parse_qdict_section(QDict *options, QemuOptsList *opts,
> +                                       Error **errp)
> +{

> +
> +    subopts = qemu_opts_create_nofail(opts);

You need to rebase this on top of Peter's patches that removed this
function in favor of &error_abort.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]