diff options
| author | Luiz Capitulino | 2011-11-25 20:52:45 +0100 |
|---|---|---|
| committer | Luiz Capitulino | 2011-12-06 14:40:01 +0100 |
| commit | d51a67b4d3214654a7b100c0873b77cb2bf87f29 (patch) | |
| tree | 539b5b99fc71002a6486662155ccb015044506a9 /qapi-schema.json | |
| parent | qapi: Convert blockdev_snapshot_sync (diff) | |
| download | qemu-d51a67b4d3214654a7b100c0873b77cb2bf87f29.tar.gz qemu-d51a67b4d3214654a7b100c0873b77cb2bf87f29.tar.xz qemu-d51a67b4d3214654a7b100c0873b77cb2bf87f29.zip | |
qapi: Convert human-monitor-command
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qapi-schema.json')
| -rw-r--r-- | qapi-schema.json | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/qapi-schema.json b/qapi-schema.json index 0ed39f360f..39bcc06c38 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -1099,3 +1099,31 @@ ## { 'command': 'blockdev-snapshot-sync', 'data': { 'device': 'str', 'snapshot-file': 'str', '*format': 'str' } } + +## +# @human-monitor-command: +# +# Execute a command on the human monitor and return the output. +# +# @command-line: the command to execute in the human monitor +# +# @cpu-index: #optional The CPU to use for commands that require an implicit CPU +# +# Returns: the output of the command as a string +# +# Since: 0.14.0 +# +# Notes: This command only exists as a stop-gap. It's use is highly +# discouraged. The semantics of this command are not guaranteed. +# +# Known limitations: +# +# o This command is stateless, this means that commands that depend +# on state information (such as getfd) might not work +# +# o Commands that prompt the user for data (eg. 'cont' when the block +# device is encrypted) don't currently work +## +{ 'command': 'human-monitor-command', + 'data': {'command-line': 'str', '*cpu-index': 'int'}, + 'returns': 'str' } |
