]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cpu: Let explicit features override model features
authorJiri Denemark <jdenemar@redhat.com>
Sat, 20 Jul 2013 22:27:40 +0000 (00:27 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 22 Jul 2013 11:57:53 +0000 (13:57 +0200)
commit67dfc772d12d35408130367756fd8422641c9af0
tree113a56ad897cd9ee7b07e1454057fbd157cb3592
parent0c81eaba9ea0b5e1e4fd113f957b6fcefb09e9ff
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.
src/cpu/cpu_x86.c
tests/cputest.c
tests/cputestdata/x86-exact-force-Haswell.xml [new file with mode: 0644]
tests/cputestdata/x86-host-SandyBridge.xml [new file with mode: 0644]