mirror of https://gitee.com/openkylin/libvirt.git
virQEMUCapsCachePriv: Add host cpuid information
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
568ce029e7
commit
f3f67d4ecd
|
@ -4023,6 +4023,7 @@ struct _virQEMUCapsCachePriv {
|
|||
gid_t runGid;
|
||||
virArch hostArch;
|
||||
unsigned int microcodeVersion;
|
||||
virCPUData *cpuData;
|
||||
char *kernelVersion;
|
||||
char *hostCPUSignature;
|
||||
|
||||
|
@ -4040,6 +4041,7 @@ virQEMUCapsCachePrivFree(void *privData)
|
|||
|
||||
g_free(priv->libDir);
|
||||
g_free(priv->kernelVersion);
|
||||
virCPUDataFree(priv->cpuData);
|
||||
g_free(priv->hostCPUSignature);
|
||||
g_free(priv);
|
||||
}
|
||||
|
@ -5568,6 +5570,8 @@ virQEMUCapsCacheNew(const char *libDir,
|
|||
if (uname(&uts) == 0)
|
||||
priv->kernelVersion = g_strdup_printf("%s %s", uts.release, uts.version);
|
||||
|
||||
priv->cpuData = virCPUDataGetHost();
|
||||
|
||||
cleanup:
|
||||
return cache;
|
||||
|
||||
|
|
Loading…
Reference in New Issue