Nina Schoetterl-Glausch <[email protected]> writes:
> From: Pierre Morel <[email protected]>
>
> The query-cpu-polarization qmp command returns the current
> CPU polarization of the machine.
>
> Signed-off-by: Pierre Morel <[email protected]>
> Reviewed-by: Thomas Huth <[email protected]>
> Reviewed-by: Nina Schoetterl-Glausch <[email protected]>
> Co-developed-by: Nina Schoetterl-Glausch <[email protected]>
> Signed-off-by: Nina Schoetterl-Glausch <[email protected]>
> ---
> qapi/machine-target.json | 29 +++++++++++++++++++++++++++++
> hw/s390x/cpu-topology.c | 8 ++++++++
> 2 files changed, 37 insertions(+)
>
> diff --git a/qapi/machine-target.json b/qapi/machine-target.json
> index 276c3bf9d1..58ba28a868 100644
> --- a/qapi/machine-target.json
> +++ b/qapi/machine-target.json
> @@ -445,3 +445,32 @@
> 'features': [ 'unstable' ],
> 'if': { 'all': [ 'TARGET_S390X', 'CONFIG_KVM' ] }
> }
> +
> +##
> +# @CpuPolarizationInfo:
> +#
> +# The result of a cpu polarization
CPU polarization
End the sentence with a period, please.
> +#
> +# @polarization: the CPU polarization
> +#
> +# Since: 8.2
> +##
> +{ 'struct': 'CpuPolarizationInfo',
> + 'data': { 'polarization': 'CpuS390Polarization' },
> + 'if': { 'all': [ 'TARGET_S390X', 'CONFIG_KVM' ] }
> +}
> +
> +##
> +# @query-s390x-cpu-polarization:
> +#
> +# Features:
Blank line, please.
> +# @unstable: This command may still be modified.
Make this
# @unstable: This command is experimental.
> +#
> +# Returns: the machine polarization
The CPU polarization, I presume?
> +#
> +# Since: 8.2
> +##
> +{ 'command': 'query-s390x-cpu-polarization', 'returns':
> 'CpuPolarizationInfo',
> + 'features': [ 'unstable' ],
> + 'if': { 'all': [ 'TARGET_S390X', 'CONFIG_KVM' ] }
> +}
[...]