From: Marc-André Lureau Date: Thu, 23 Jun 2016 11:10:30 +0000 (+0200) Subject: qmp-commands: move 'balloon' doc to schema X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7b338db7ef58619db0a43d464d3cfe07e6ea0e3b;p=qemu.git qmp-commands: move 'balloon' doc to schema Signed-off-by: Marc-André Lureau Signed-off-by: Markus Armbruster --- diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index 6038f5cc73..a6d3946eeb 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -1074,20 +1074,6 @@ Arguments: Returns: Nothing on success If "device" does not exist or cannot be determined, DeviceNotFound -balloon -------- - -Request VM to change its memory allocation (in bytes). - -Arguments: - -- "value": New memory allocation (json-int) - -Example: - --> { "execute": "balloon", "arguments": { "value": 536870912 } } -<- { "return": {} } - getfd ----- diff --git a/qapi-schema.json b/qapi-schema.json index 43b485e145..3a81d6accb 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -2379,6 +2379,12 @@ # size independent of this command. # # Since: 0.14.0 +# +# Example: +# +# -> { "execute": "balloon", "arguments": { "value": 536870912 } } +# <- { "return": {} } +# ## { 'command': 'balloon', 'data': {'value': 'int'} }