diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2014-01-29 12:17:31 +0100 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2014-02-17 11:57:23 -0500 |
commit | ff9ec34de8f6a37bd29ac72c0c4c94bd5d43d7b0 (patch) | |
tree | fbca8fa2816d803a682a034072c5b1f772c1cf6c /block/raw_bsd.c | |
parent | dde3a2184074f5c4279fd7fbfc597b5dc5859fb8 (diff) | |
download | qemu-ff9ec34de8f6a37bd29ac72c0c4c94bd5d43d7b0.tar.gz qemu-ff9ec34de8f6a37bd29ac72c0c4c94bd5d43d7b0.tar.bz2 qemu-ff9ec34de8f6a37bd29ac72c0c4c94bd5d43d7b0.zip |
QMP: allow JSON dict arguments in qmp-shell
qmp-shell hides the QMP wire protocol JSON encoding from the user. Most
of the time this is helpful and makes the command-line human-friendly.
Some QMP commands take a dict as an argument. In order to express this
we need to revert back to JSON notation.
This patch allows JSON dict arguments in qmp-shell so commands like
blockdev-add and nbd-server-start can be invoked:
(QEMU) blockdev-add options={"driver":"file","id":"drive1",...}
Note that spaces are not allowed since str.split() is used to break up
the command-line arguments first.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'block/raw_bsd.c')
0 files changed, 0 insertions, 0 deletions