qmp-commands: move 'cpu-add' 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:
Marc-André Lureau 2016-06-23 13:04:10 +02:00 committed by Markus Armbruster
parent 04fcbabc45
commit a7b83754aa
2 changed files with 6 additions and 14 deletions

View file

@ -219,20 +219,6 @@ Example:
Note: CPUs' indexes are obtained with the 'query-cpus' command.
cpu-add
-------
Adds virtual cpu
Arguments:
- "id": cpu id (json-int)
Example:
-> { "execute": "cpu-add", "arguments": { "id": 2 } }
<- { "return": {} }
memsave
-------

View file

@ -2203,6 +2203,12 @@
# Returns: Nothing on success
#
# Since: 1.5
#
# Example:
#
# -> { "execute": "cpu-add", "arguments": { "id": 2 } }
# <- { "return": {} }
#
##
{ 'command': 'cpu-add', 'data': {'id': 'int'} }