]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cpu: Avoid adding <vendor> to custom CPUs
authorJiri Denemark <jdenemar@redhat.com>
Thu, 10 Nov 2016 09:26:03 +0000 (10:26 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 15 Nov 2016 14:49:16 +0000 (15:49 +0100)
commit98b7c37d3729777cfefb39a89cd1741cdbbe8744
tree230fe844887ff81a73791d3676ea800a186da10c
parentd73422c1867b938b9fd9411ad68b840e7264b5a1
cpu: Avoid adding <vendor> to custom CPUs

Guest CPU definitions with mode='custom' and missing <vendor> are
expected to run on a host CPU from any vendor as long as the required
CPU model can be used as a guest CPU on the host. But even though no CPU
vendor was explicitly requested we would sometimes force it due to a bug
in virCPUUpdate and virCPUTranslate.

The bug would effectively forbid cross vendor migrations even if they
were previously working just fine.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/conf/cpu_conf.c
src/conf/cpu_conf.h
src/cpu/cpu_arm.c
src/cpu/cpu_x86.c
tests/cputestdata/x86-host+guest,model486-result.xml
tests/cputestdata/x86-host+guest,models-result.xml
tests/cputestdata/x86-host+min.xml
tests/cputestdata/x86-host+pentium3.xml
tests/cputestdata/x86-host-Haswell-noTSX+Haswell-noTSX,haswell-result.xml
tests/cputestdata/x86-host-better+pentium3-result.xml