On 09/06/2016 02:47 AM, Cornelia Huck wrote: > From: David Hildenbrand <d...@linux.vnet.ibm.com> > > Let's provide a standardized interface to compare two CPU models. > "query-cpu-model-compare" takes two models and returns how they compare > in a specific configuration. >
> +## > +# @CpuModelCompareResult: > +# > +# An enumeration of CPU model comparation results. The result is usually > +# calcualted using e.g. CPU features or CPU generations. s/calcualted/calculated/ > +## > +# @query-cpu-model-comparison: > +# > +# Compares two CPU models, returning how they compare in a specific > +# configuration. The results indicates how both models compare regarding > +# runnability. This result can be used by tooling to make decisions if a > +# certain CPU model will run in a certain configuration or if a compatible > +# CPU model has to be created by baselining. > +# > +# Usually, a CPU model is compared against the maximum possible CPU model > +# of a ceratin configuration (e.g. the "host" model for KVM). If that CPU s/ceratin/certain/ > +# model is identical or a subset, it will run in that configuration. > +# > +# The result returned by this command may be affected by: > +# > +# * QEMU version: CPU models may look different depending on the QEMU > version. > +# (Except for CPU models reported as "static" in query-cpu-definitions.) > +# * machine-type: CPU model may look different depending on the > machine-type. s/model may/model may/ > +# (Except for CPU models reported as "static" in query-cpu-definitions.) > +# * machine options (including accelerator): in some architectures, CPU > models > +# may look different depending on machine and accelerator options. (Except > for > +# CPU models reported as "static" in query-cpu-definitions.) > +# * "-cpu" arguments and global properties: arguments to the -cpu option and > +# global properties may affect expansion of CPU models. Using > +# query-cpu-model-expansion while using these is not advised. > +# > +# Some architectures may not support comparing CPU models. > +# > +# Returns: a CpuModelBaselineInfo. Returns an error if comparing CPU models > is > +# not supported, if a model cannot be used, if a model contains > +# an unknown cpu definition name, unknown properties or properties > +# with wrong types. > +# > +# Since: 2.8.0 > +## > +{ 'command': 'query-cpu-model-comparison', > + 'data': { 'modela': 'CpuModelInfo', 'modelb': 'CpuModelInfo' }, > + 'returns': 'CpuModelCompareInfo' } > + -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature