OSDN Git Service

QMP: Allow dot separated dict path arguments in qmp-shell
authorFam Zheng <famz@redhat.com>
Wed, 12 Feb 2014 03:05:13 +0000 (11:05 +0800)
committerLuiz Capitulino <lcapitulino@redhat.com>
Fri, 28 Feb 2014 16:41:43 +0000 (11:41 -0500)
commitcd159d0954f65df61864a85e355acdf7ae7fe0f9
tree4e58e16b1d00cf521236687d7e5d7d0e97f0091f
parentd844a7b6569fb2b5252773444b18841426e5b906
QMP: Allow dot separated dict path arguments in qmp-shell

As another convenience to allow using commands that expect a dict as
argument, this patch adds support for foo.bar=value syntax, similar to
command line argument style:

  (QEMU) blockdev-add options.driver=file options.id=drive1 options.filename=...

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
scripts/qmp/qmp-shell