]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cpu_x86: Allow multiple signatures for a CPU model
authorJiri Denemark <jdenemar@redhat.com>
Fri, 22 Feb 2019 16:20:59 +0000 (17:20 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 5 Mar 2019 13:39:15 +0000 (14:39 +0100)
commitdfeb3e598438a891a05487c34e6723d1d3ed9256
tree2c08be2e9c9bec963ef362d13144cd89bcdf0ea3
parentb07b8b7750c6a505d4b00bd272e79ea0305cb610
cpu_x86: Allow multiple signatures for a CPU model

CPU signatures in the cpu_map serve as a hint for CPUID to CPU model
matching algorithm. If the CPU signatures matches any CPU model in the
cpu_map, this model will be the preferred one.

This works out well and solved several mismatches, but in real world
CPUs which should match a single CPU model may be produced with several
different signatures. For example, low voltage Broadwell CPUs for
laptops and Broadwell CPUs for servers differ in CPU model numbers while
we should detect them all as Broadwell CPU model.

This patch adds support for storing several signatures for a single CPU
model to make this hint useful for more CPUs. Later commits will provide
additional signatures for existing CPU models, which will correct some
results in our CPU test suite.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/cpu/cpu_x86.c