[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 17/22] qapi: introduce x-query-cmma QMP command
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v4 17/22] qapi: introduce x-query-cmma QMP command |
Date: |
Thu, 28 Oct 2021 19:00:29 +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 cmma" 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.
>
> This command is unable to use the pre-existing HumanReadableText,
> because if 'common.json' is included into 'machine-target.json'
> the static marshalling method for HumanReadableText will be reported
> as unused by the compiler on all architectures except s390x.
>
> Possible options were
>
> 1 Support 'if' conditionals on 'include' statements in QAPI
> 2 Add further commands to 'machine-target.json' that use
> HumanReadableText, such that it has at least one usage
> on all architecture targets.
> 3 Duplicate HumanReadableText as TargetHumanReadableText
> adding conditions
>
> This patch takes option (3) in the belief that we will eventually
> get to a point where option (2) happens, and TargetHumanReadableText
> can be removed again.
>
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> ---
> hw/s390x/s390-stattrib.c | 56 +++++++++++++++++++++++++++-------------
> qapi/machine-target.json | 14 ++++++++++
> 2 files changed, 52 insertions(+), 18 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
- [PATCH v4 12/22] qapi: introduce x-query-numa QMP command, (continued)
- [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
- [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
- Re: [PATCH v4 17/22] qapi: introduce x-query-cmma QMP command,
Philippe Mathieu-Daudé <=
- [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
- [PATCH v4 21/22] qapi: introduce x-query-jit QMP command, Daniel P . Berrangé, 2021/10/28
- [PATCH v4 22/22] qapi: introduce x-query-opcount QMP command, Daniel P . Berrangé, 2021/10/28