[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 13/22] qapi: introduce x-query-usb QMP command
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v4 13/22] qapi: introduce x-query-usb QMP command |
Date: |
Thu, 28 Oct 2021 18:57:28 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 |
On 10/28/21 17:54, Daniel P. Berrangé wrote:
> 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.
>
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> ---
> hmp-commands-info.hx | 2 +-
> hw/usb/bus.c | 24 +++++++++++++++---------
> qapi/machine.json | 12 ++++++++++++
> stubs/usb-dev-stub.c | 8 ++++++++
> tests/qtest/qmp-cmd-test.c | 2 ++
> 5 files changed, 38 insertions(+), 10 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> --- 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;
>
- [PATCH v4 08/22] docs/devel: add example of command returning unstructured text, (continued)
- [PATCH v4 08/22] docs/devel: add example of command returning unstructured text, Daniel P . Berrangé, 2021/10/28
- [PATCH v4 09/22] docs/devel: document expectations for HMP commands in the future, Daniel P . Berrangé, 2021/10/28
- [PATCH v4 07/22] docs/devel: document expectations for QAPI data modelling for QMP, Daniel P . Berrangé, 2021/10/28
- [PATCH v4 10/22] qapi: introduce x-query-roms QMP command, Daniel P . Berrangé, 2021/10/28
- [PATCH v4 11/22] qapi: introduce x-query-profile QMP command, Daniel P . Berrangé, 2021/10/28
- [PATCH v4 12/22] qapi: introduce x-query-numa QMP command, Daniel P . Berrangé, 2021/10/28
- [PATCH v4 13/22] qapi: introduce x-query-usb QMP command, Daniel P . Berrangé, 2021/10/28
- Re: [PATCH v4 13/22] qapi: introduce x-query-usb QMP command,
Philippe Mathieu-Daudé <=
- [PATCH v4 14/22] qapi: introduce x-query-rdma QMP command, Daniel P . Berrangé, 2021/10/28
- [PATCH v4 15/22] qapi: introduce x-query-ramblock QMP command, Daniel P . Berrangé, 2021/10/28
- [PATCH v4 16/22] qapi: introduce x-query-skeys QMP command, Daniel P . Berrangé, 2021/10/28
- [PATCH v4 17/22] qapi: introduce x-query-cmma QMP command, Daniel P . Berrangé, 2021/10/28
- [PATCH v4 18/22] hmp: synchronize cpu state for lapic info, Daniel P . Berrangé, 2021/10/28
- [PATCH v4 19/22] qapi: introduce x-query-lapic QMP command, Daniel P . Berrangé, 2021/10/28
- [PATCH v4 20/22] qapi: introduce x-query-irq QMP command, Daniel P . Berrangé, 2021/10/28