On 10/02/2013 05:33 AM, Michael Mueller wrote:
> This patch implements a new QMP request named "cpu-model". It returns
> the cpu model of cpu 0. eg:
> 
> request: '{"execute" : "query-cpu-model" }
> answer:  '{"return" : "2817-ga1" }
> 
> Alias names are resolved to their respactive machine type and GA names
> already during cpu instantiation. Thus, also a cpu name like "host",
> which is iplemented as alias, will return its normalized cpu model name.
> 
> Signed-off-by: Michael Mueller <m...@linux.vnet.ibm.com>
> ---

> +++ b/qapi-schema.json
> @@ -3129,6 +3129,29 @@
>  ##
>  { 'command': 'query-cpu-definitions', 'returns': ['CpuDefinitionInfo'] }
>  
> +##
> +# @CpuModelInfo:
> +#
> +# Virtual CPU model definition.
> +#
> +# @name: the name of the CPU model definition
> +#
> +# Since: 1.x.0

s/x/7/ - you are targetting 1.7.0 after all.

> +##
> +{ 'type': 'CpuModelInfo',
> +  'data': { 'name': 'str' } }
> +
> +##
> +# @query-cpu-model:
> +#
> +# Return to current virtual CPU model
> +#
> +# Returns: CpuModelInfo
> +#
> +# Since: 1.2.0

s/2/7/

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to