]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Parse CPU stepping from query-cpu-model-expansion
authorJiri Denemark <jdenemar@redhat.com>
Tue, 10 Oct 2017 11:34:28 +0000 (13:34 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 17 Oct 2017 20:37:04 +0000 (22:37 +0200)
commitc1a63a5f7bb17f88fea34bc647a0eee7024d05ea
tree66723143c79fb42e1729281f148ca85dd090198b
parent921d61575d6ca7f6242195e7e316904b766da668
qemu: Parse CPU stepping from query-cpu-model-expansion

Even though only family and model are used for matching CPUID data with
CPU models from cpu_map.xml, stepping is used by x86DataFilterTSX which
is supposed to disable TSX on CPU models with broken TSX support. Thus
we need to start parsing stepping from QEMU to make sure we don't
disable TSX on CPUs which provide working TSX implementation. See the
following patch for a real world example of such CPU.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/cpu/cpu_x86.c
src/cpu/cpu_x86.h
src/qemu/qemu_capabilities.c