diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2021-09-08 10:35:43 +0100 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2021-11-02 15:55:14 +0000 |
commit | fc30920731470a44c69c8359be45b72ac7314fb6 (patch) | |
tree | eef0718422293f957be3d993bd4abd69137e42c7 /tests/qtest | |
parent | 1b8ae799d8916dd589cc31db697a82b4e86880d0 (diff) | |
download | qemu-fc30920731470a44c69c8359be45b72ac7314fb6.zip qemu-fc30920731470a44c69c8359be45b72ac7314fb6.tar.gz qemu-fc30920731470a44c69c8359be45b72ac7314fb6.tar.bz2 |
qapi: introduce x-query-usb QMP command
This is a counterpart to the HMP "info usb" command. It is being
added with an "x-" prefix because this QMP command is intended as an
adhoc debugging tool and will thus not be modelled in QAPI as fully
structured data, nor will it have long term guaranteed stability.
The existing HMP command is rewritten to call the QMP command.
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'tests/qtest')
-rw-r--r-- | tests/qtest/qmp-cmd-test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/qtest/qmp-cmd-test.c b/tests/qtest/qmp-cmd-test.c index 372c887..0d52ea6 100644 --- a/tests/qtest/qmp-cmd-test.c +++ b/tests/qtest/qmp-cmd-test.c @@ -49,6 +49,8 @@ static int query_error_class(const char *cmd) #ifndef CONFIG_PROFILER { "x-query-profile", ERROR_CLASS_GENERIC_ERROR }, #endif + /* Only valid with a USB bus added */ + { "x-query-usb", ERROR_CLASS_GENERIC_ERROR }, { NULL, -1 } }; int i; |