[libvirt] [PATCH] cpu: Add Intel Haswell cpu model

Martin Kletzander mkletzan at redhat.com
Thu Nov 22 14:52:42 UTC 2012


On 11/22/2012 03:05 PM, Peter Krempa wrote:
> The new model supports following features in addition to those supported
> by SandyBridge:
> 
> fma, movbe, fsgsbase, bmi1, hle, avx2, smep, bmi2, erms, invpcid, rtm

missing 'pcid' flag

> ---
> Based on: https://lists.gnu.org/archive/html/qemu-devel/2012-11/msg01328.html
> ---
>  src/cpu/cpu_map.xml | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
> 
> diff --git a/src/cpu/cpu_map.xml b/src/cpu/cpu_map.xml
> index 7ff91be..eb69a34 100644
> --- a/src/cpu/cpu_map.xml
> +++ b/src/cpu/cpu_map.xml
> @@ -495,6 +495,22 @@
>        <feature name='rdtscp'/>
>      </model>
> 
> +    <model name='Haswell'>
> +      <model name='SandyBridge'/>
> +      <feature name='fma'/>
> +      <feature name='pcid'/>
> +      <feature name='movbe'/>
> +      <feature name='fsgsbase'/>
> +      <feature name='bmi1'/>
> +      <feature name='hle'/>
> +      <feature name='avx2'/>
> +      <feature name='smep'/>
> +      <feature name='bmi2'/>
> +      <feature name='erms'/>
> +      <feature name='invpcid'/>
> +      <feature name='rtm'/>
> +    </model>
> +
>      <!-- AMD CPUs -->
>      <model name='athlon'>
>        <model name='pentiumpro'/>
> 

According to the qemu patch, the model should be only adding features,
but I see rdtscp disappeared between SandyBridge and Haswell.  The
question is whether this is QEMU bug or not, do you have any info on
that?  If not, maybe we should cross-post ask in qemu-devel.

We also include 'sep' and 'fpu' on top of these things, but I recall
some conversation about qemu dropping 'sep' from some models lately, but
I have no idea about 'fpu' flag handling there either.

Martin




More information about the libvir-list mailing list