diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-12-19 13:13:57 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-01-16 06:58:54 +0100 |
commit | ffbdbe59acc5f175d6c05a5d90f0b7c865fafd5b (patch) | |
tree | a3ffc447ff9a7f2dc14a7c05c363525b608cbd99 /qmp-commands.hx | |
parent | f10889089153edf032476b45229477866a9ca0b1 (diff) | |
download | qemu-ffbdbe59acc5f175d6c05a5d90f0b7c865fafd5b.tar.gz qemu-ffbdbe59acc5f175d6c05a5d90f0b7c865fafd5b.tar.bz2 qemu-ffbdbe59acc5f175d6c05a5d90f0b7c865fafd5b.zip |
chardev: add file chardev support to chardev-add (qmp)
Add support for file chardevs. Output file is mandatory,
input file is optional.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'qmp-commands.hx')
-rw-r--r-- | qmp-commands.hx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/qmp-commands.hx b/qmp-commands.hx index c9ab37c9b9..4d382f4ffc 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -2672,13 +2672,19 @@ Arguments: - "id": the chardev's ID, must be unique (json-string) - "backend": chardev backend type + parameters -Example: +Examples: -> { "execute" : "chardev-add", "arguments" : { "id" : "foo", "backend" : { "type" : "null", "data" : {} } } } <- { "return": {} } +-> { "execute" : "chardev-add", + "arguments" : { "id" : "bar", + "backend" : { "type" : "file", + "data" : { "out" : "/tmp/bar.log" } } } } +<- { "return": {} } + EQMP { |