[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH v2 21/24] block: Initial implementation of -bloc
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-block] [PATCH v2 21/24] block: Initial implementation of -blockdev |
Date: |
Tue, 28 Feb 2017 23:05:53 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Am 28.02.2017 um 22:27 hat Markus Armbruster geschrieben:
> The new command line option -blockdev works like QMP command
> blockdev-add.
>
> The option argument may be given in JSON syntax, exactly as in QMP.
> Example usage:
>
> -blockdev '{"node-name": "foo", "driver": "raw", "file": {"driver":
> "file", "filename": "foo.img"} }'
>
> The JSON argument doesn't exactly blend into the existing option
> syntax, so the traditional KEY=VALUE,... syntax is also supported,
> using dotted keys to do the nesting:
>
> -blockdev node-name=foo,driver=raw,file.driver=file,file.filename=foo.img
>
> This does not yet support lists or downstream extensions, i.e. keys
> with __RFQDN_ prefix, but the next few patches will take care of that.
>
> Note that calling qmp_blockdev_add() (say via qmp_marshal_block_add())
> right away would crash. We need to stash the configuration for later
> instead. This is crudely done, and bypasses QemuOpts, even though
> storing configuration is what QemuOpts is for. Need to revamp option
> infrastructure to support QAPI types like BlockdevOptions.
>
> Signed-off-by: Markus Armbruster <address@hidden>
> Reviewed-by: Eric Blake <address@hidden>
> Signed-off-by: Markus Armbruster <address@hidden>
Double S-o-B? Anyway:
Reviewed-by: Kevin Wolf <address@hidden>
- Re: [Qemu-block] [PATCH v2 20/24] qapi: New qobject_input_visitor_new_str() for convenience, (continued)
- [Qemu-block] [PATCH v2 19/24] keyval: Restrict key components to valid QAPI names, Markus Armbruster, 2017/02/28
- [Qemu-block] [PATCH v2 22/24] qapi: Improve how keyval input visitor reports unexpected dicts, Markus Armbruster, 2017/02/28
- [Qemu-block] [PATCH v2 05/24] test-keyval: Cover use with qobject input visitor, Markus Armbruster, 2017/02/28
- [Qemu-block] [PATCH v2 14/24] check-qjson: Test errors from qobject_from_json(), Markus Armbruster, 2017/02/28
- [Qemu-block] [PATCH v2 12/24] qobject: Propagate parse errors through qobject_from_json(), Markus Armbruster, 2017/02/28
- [Qemu-block] [PATCH v2 18/24] qapi: New parse_qapi_name(), Markus Armbruster, 2017/02/28
- [Qemu-block] [PATCH v2 17/24] test-qapi-util: New, covering qapi/qapi-util.c, Markus Armbruster, 2017/02/28
- [Qemu-block] [PATCH v2 21/24] block: Initial implementation of -blockdev, Markus Armbruster, 2017/02/28
- Re: [Qemu-block] [PATCH v2 21/24] block: Initial implementation of -blockdev,
Kevin Wolf <=
- [Qemu-block] [PATCH v2 24/24] keyval: Support lists, Markus Armbruster, 2017/02/28
- Re: [Qemu-block] [PATCH v2 24/24] keyval: Support lists, Eric Blake, 2017/02/28
- Re: [Qemu-block] [PATCH v2 00/24] block: Command line option -blockdev, Markus Armbruster, 2017/02/28