[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
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH v6 01/22] blkdebug: Use errp for read_config(), (continued)
- [Qemu-devel] [PATCH v6 01/22] blkdebug: Use errp for read_config(), Max Reitz, 2013/12/19
- [Qemu-devel] [PATCH v6 02/22] blkdebug: Don't require sophisticated filename, Max Reitz, 2013/12/19
- [Qemu-devel] [PATCH v6 03/22] qdict: Add qdict_array_split(), Max Reitz, 2013/12/19
- [Qemu-devel] [PATCH v6 04/22] qapi: extend qdict_flatten() for QLists, Max Reitz, 2013/12/19
- [Qemu-devel] [PATCH v6 05/22] qemu-option: Add qemu_config_parse_qdict(), Max Reitz, 2013/12/19
- Re: [Qemu-devel] [PATCH v6 05/22] qemu-option: Add qemu_config_parse_qdict(),
Eric Blake <=
- [Qemu-devel] [PATCH v6 06/22] blkdebug: Always call read_config(), Max Reitz, 2013/12/19
- [Qemu-devel] [PATCH v6 07/22] blkdebug: Use command-line in read_config(), Max Reitz, 2013/12/19
- [Qemu-devel] [PATCH v6 08/22] block: Allow reference for bdrv_file_open(), Max Reitz, 2013/12/19
- [Qemu-devel] [PATCH v6 09/22] block: Pass reference to bdrv_file_open(), Max Reitz, 2013/12/19
- [Qemu-devel] [PATCH v6 10/22] block: Allow block devices without files, Max Reitz, 2013/12/19
- [Qemu-devel] [PATCH v6 11/22] block: Add bdrv_open_image(), Max Reitz, 2013/12/19
- [Qemu-devel] [PATCH v6 12/22] block: Use bdrv_open_image() in bdrv_open(), Max Reitz, 2013/12/19
- [Qemu-devel] [PATCH v6 13/22] block: Allow recursive "file"s, Max Reitz, 2013/12/19
- [Qemu-devel] [PATCH v6 14/22] blockdev: Move "file" to legacy_opts, Max Reitz, 2013/12/19