mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-09 23:10:08 +00:00
67dfc772d1
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.
16 lines
581 B
XML
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>
|