libvirt/tests/cputestdata/x86-exact-force-Haswell.xml
Jiri Denemark 67dfc772d1 cpu: Let explicit features override model features
Until now CPU features inherited from a specified CPU model could only
be overridden with 'disable' policy. With this patch, any explicitly
specified feature always overrides the same feature inherited from a CPU
model regardless on the specified policy.

The CPU in x86-exact-force-Haswell.xml would previously be incompatible
with x86-host-SandyBridge.xml CPU even though x86-host-SandyBridge.xml
provides all features required by x86-exact-force-Haswell.xml.
2013-07-22 13:57:53 +02:00

16 lines
581 B
XML

<cpu mode='custom' match='exact'>
<model fallback='allow'>Haswell</model>
<feature policy='force' name='pcid'/>
<feature policy='force' name='rtm'/>
<feature policy='force' name='invpcid'/>
<feature policy='force' name='erms'/>
<feature policy='force' name='bmi2'/>
<feature policy='optional' name='smep'/>
<feature policy='optional' name='avx2'/>
<feature policy='optional' name='hle'/>
<feature policy='force' name='bmi1'/>
<feature policy='force' name='fsgsbase'/>
<feature policy='disable' name='movbe'/>
<feature policy='disable' name='fma'/>
</cpu>