qemu-devel
[Top][All Lists]
Advanced

[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;
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]