]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Don't cache microcode version
authorJiri Denemark <jdenemar@redhat.com>
Fri, 12 Apr 2019 19:21:05 +0000 (21:21 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 15 Apr 2019 12:34:49 +0000 (14:34 +0200)
commit673c62a3b7855a0685d8f116e227c402720b9ee9
tree73d637d93839e3488ca7e7dd6dd823e5ecc8bc8c
parent5dd6e7f94908192a7f18dca1fcd118683f3be707
qemu: Don't cache microcode version

My earlier commit be46f61326 was incomplete. It removed caching of
microcode version in the CPU driver, which means the capabilities XML
will see the correct microcode version. But it is also cached in the
QEMU capabilities cache where it is used to detect whether we need to
reprobe QEMU. By missing the second place, the original commit
be46f61326 made the situation even worse since libvirt would report
correct microcode version while still using the old host CPU model
(visible in domain capabilities XML).

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_driver.c
tests/testutilsqemu.c