[libvirt] [PATCH 04/36] cpu_x86: Do not cache microcode version

Ján Tomko jtomko at redhat.com
Mon Apr 8 12:29:50 UTC 2019


On Mon, Apr 08, 2019 at 10:42:08AM +0200, Jiri Denemark wrote:
>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 at redhat.com>
>---
> src/cpu/cpu_x86.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190408/3069fbe7/attachment-0001.sig>


More information about the libvir-list mailing list