]> xenbits.xensource.com Git - libvirt.git/commit
cpu_x86: Do not cache microcode version
authorJiri Denemark <jdenemar@redhat.com>
Fri, 5 Apr 2019 09:33:32 +0000 (11:33 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 8 Apr 2019 13:28:47 +0000 (15:28 +0200)
commitbe46f613261d3b655a1f15afd635087e68a9c39b
tree7ff6bc826be9d1ca5c69cf30c18b91a096dea922
parentcf4e33651c84ed02f165e9e75793b812760140c1
cpu_x86: Do not cache microcode version

The microcode version checks are used to invalidate cached CPU data we
get from QEMU. To minimize /proc/cpuinfo parsing the microcode version
was only read when libvirtd started and cached for the daemon's
lifetime. However, the CPU microcode can change anytime (updating the
microcode package can automatically upload it to the CPU) and we need to
stop caching it to avoid using stale CPU model data.

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