mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 19:14:58 -06:00
qmp-commands: move 'ringbuf-read' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
a4143a845a
commit
4f19a01b3e
2 changed files with 9 additions and 27 deletions
|
@ -334,33 +334,6 @@ Example:
|
||||||
|
|
||||||
Note: inject-nmi fails when the guest doesn't support injecting.
|
Note: inject-nmi fails when the guest doesn't support injecting.
|
||||||
|
|
||||||
ringbuf-read
|
|
||||||
-------------
|
|
||||||
|
|
||||||
Read from a ring buffer character device.
|
|
||||||
|
|
||||||
Arguments:
|
|
||||||
|
|
||||||
- "device": ring buffer character device name (json-string)
|
|
||||||
- "size": how many bytes to read at most (json-int)
|
|
||||||
- Number of data bytes, not number of characters in encoded data
|
|
||||||
- "format": data format (json-string, optional)
|
|
||||||
- Possible values: "utf8" (default), "base64"
|
|
||||||
- Naturally, format "utf8" works only when the ring buffer
|
|
||||||
contains valid UTF-8 text. Invalid UTF-8 sequences get
|
|
||||||
replaced. Bug: replacement doesn't work. Bug: can screw
|
|
||||||
up on encountering NUL characters, after the ring buffer
|
|
||||||
lost data, and when reading stops because the size limit
|
|
||||||
is reached.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
-> { "execute": "ringbuf-read",
|
|
||||||
"arguments": { "device": "foo",
|
|
||||||
"size": 1000,
|
|
||||||
"format": "utf8" } }
|
|
||||||
<- {"return": "abcdefgh"}
|
|
||||||
|
|
||||||
xen-save-devices-state
|
xen-save-devices-state
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|
|
@ -446,6 +446,15 @@
|
||||||
# Returns: data read from the device
|
# Returns: data read from the device
|
||||||
#
|
#
|
||||||
# Since: 1.4
|
# Since: 1.4
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
#
|
||||||
|
# -> { "execute": "ringbuf-read",
|
||||||
|
# "arguments": { "device": "foo",
|
||||||
|
# "size": 1000,
|
||||||
|
# "format": "utf8" } }
|
||||||
|
# <- { "return": "abcdefgh" }
|
||||||
|
#
|
||||||
##
|
##
|
||||||
{ 'command': 'ringbuf-read',
|
{ 'command': 'ringbuf-read',
|
||||||
'data': {'device': 'str', 'size': 'int', '*format': 'DataFormat'},
|
'data': {'device': 'str', 'size': 'int', '*format': 'DataFormat'},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue