]> xenbits.xensource.com Git - libvirt.git/commit
conf: include x86 microcode version in virsh capabilities
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Dec 2017 15:23:40 +0000 (16:23 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 4 Jan 2018 15:52:03 +0000 (16:52 +0100)
commitd2440f3b53ade3d998b608acd95b1150806cbe59
tree13ed9cc017104412fa0afad85ea7effb083f118a
parentbd874d9ff176880aa7d1d9becdf60666aaa14513
conf: include x86 microcode version in virsh capabilities

A microcode update can cause the CPUID bits to change; an example
from the past was the update that disabled TSX on several Haswell and
Broadwell machines.

In order to track the x86 microcode version in the QEMU capabilities,
we have to fetch it and store it in the host CPU.  This also makes the
version visible in "virsh capabilities", which is a nice side effect.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/conf/cpu_conf.c
src/conf/cpu_conf.h
src/cpu/cpu_x86.c