diff options
author | Peter Xu | 2018-03-09 10:00:04 +0100 |
---|---|---|
committer | Eric Blake | 2018-03-19 20:58:37 +0100 |
commit | 469638f9cb3fde767fbc207f62fc3735eea96ef1 (patch) | |
tree | 509c1e7a3f52a5b41255032560fc7f7dee3b4182 /qapi | |
parent | monitor: enable IO thread for (qmp & !mux) typed (diff) | |
download | qemu-469638f9cb3fde767fbc207f62fc3735eea96ef1.tar.gz qemu-469638f9cb3fde767fbc207f62fc3735eea96ef1.tar.xz qemu-469638f9cb3fde767fbc207f62fc3735eea96ef1.zip |
qmp: add command "x-oob-test"
This command is only used to test OOB functionality. It should not be
used for any other purposes.
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180309090006.10018-22-peterx@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[eblake: grammar tweak]
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r-- | qapi/misc.json | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/qapi/misc.json b/qapi/misc.json index 1545e41620..c31fc983f3 100644 --- a/qapi/misc.json +++ b/qapi/misc.json @@ -3427,3 +3427,21 @@ ## { 'event': 'COMMAND_DROPPED' , 'data': { 'id': 'any', 'reason': 'CommandDropReason' } } + +## +# @x-oob-test: +# +# Test OOB functionality. When sending this command with lock=true, +# it'll try to hang the dispatcher. When sending it with lock=false, +# it'll try to notify the locked thread to continue. Note: it should +# only be used by QMP test program rather than anything else. +# +# Since: 2.12 +# +# Example: +# +# { "execute": "x-oob-test", +# "arguments": { "lock": true } } +## +{ 'command': 'x-oob-test', 'data' : { 'lock': 'bool' }, + 'allow-oob': true } |