]> git.ipfire.org Git - thirdparty/libvirt.git/commit
hostcpu: Introduce virHostCPUGetSignature
authorJiri Denemark <jdenemar@redhat.com>
Tue, 31 Mar 2020 22:44:00 +0000 (00:44 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 25 May 2020 14:09:41 +0000 (16:09 +0200)
commita551dd5fdf71b252949e258eb49403df4d8db82d
treefa0b9460aa195cc5808d11ad288662682876db7f
parent8cb9d2495c0c2921bb7c9fc3059ed268790123b6
hostcpu: Introduce virHostCPUGetSignature

The purpose of this function is to give a short description that would
be change when a host CPU is replaced with a different model. This is
currently implemented by reading /proc/cpuinfo.

It should be implemented for all architectures for which the QEMU driver
stores host CPU data in the capabilities cache. In other words for archs
that support host-model CPUs.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libvirt_private.syms
src/util/virhostcpu.c
src/util/virhostcpu.h
src/util/virhostcpupriv.h
tests/virhostcputest.c