[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 5/7] qemu-option: Add qemu_opts_absorb_qdict()
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH 5/7] qemu-option: Add qemu_opts_absorb_qdict() |
Date: |
Fri, 01 Mar 2013 15:14:47 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130219 Thunderbird/17.0.3 |
On 03/01/2013 01:13 PM, Kevin Wolf wrote:
> This adds a function that adds all entries of a QDict to a QemuOpts if
> the keys are known, and leaves only the rest in the QDict.
>
> This way a single QDict of -drive options can be processed in multiple
> places (generic block layer, block driver, backing file block driver,
> etc.), where each part picks the options it knows. If at the end of the
> process the QDict isn't empty, the user specified an invalid option.
>
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
> include/qemu/option.h | 1 +
> util/qemu-option.c | 34 ++++++++++++++++++++++++++++++++++
> 2 files changed, 35 insertions(+)
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH 1/7] block: Add options QDict to .bdrv_open(), (continued)
- [Qemu-devel] [PATCH 1/7] block: Add options QDict to .bdrv_open(), Kevin Wolf, 2013/03/01
- [Qemu-devel] [PATCH 2/7] block: Add options QDict to bdrv_open() prototype, Kevin Wolf, 2013/03/01
- [Qemu-devel] [PATCH 3/7] Add qdict_clone_shallow(), Kevin Wolf, 2013/03/01
- [Qemu-devel] [PATCH 4/7] block: Add options QDict to bdrv_open_common(), Kevin Wolf, 2013/03/01
- [Qemu-devel] [PATCH 5/7] qemu-option: Add qemu_opts_absorb_qdict(), Kevin Wolf, 2013/03/01
- Re: [Qemu-devel] [PATCH 5/7] qemu-option: Add qemu_opts_absorb_qdict(),
Eric Blake <=
- [Qemu-devel] [PATCH 6/7] block: Support driver specific options in drive_init(), Kevin Wolf, 2013/03/01
- [Qemu-devel] [PATCH 7/7] qcow2: Allow lazy refcounts to be enabled on the command line, Kevin Wolf, 2013/03/01
- Re: [Qemu-devel] [PATCH 0/7] block: Add driver specific options, Stefan Hajnoczi, 2013/03/04