mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
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;
|
gid_t runGid;
|
||||||
virArch hostArch;
|
virArch hostArch;
|
||||||
unsigned int microcodeVersion;
|
unsigned int microcodeVersion;
|
||||||
|
virCPUData *cpuData;
|
||||||
char *kernelVersion;
|
char *kernelVersion;
|
||||||
char *hostCPUSignature;
|
char *hostCPUSignature;
|
||||||
|
|
||||||
@ -4040,6 +4041,7 @@ virQEMUCapsCachePrivFree(void *privData)
|
|||||||
|
|
||||||
g_free(priv->libDir);
|
g_free(priv->libDir);
|
||||||
g_free(priv->kernelVersion);
|
g_free(priv->kernelVersion);
|
||||||
|
virCPUDataFree(priv->cpuData);
|
||||||
g_free(priv->hostCPUSignature);
|
g_free(priv->hostCPUSignature);
|
||||||
g_free(priv);
|
g_free(priv);
|
||||||
}
|
}
|
||||||
@ -5568,6 +5570,8 @@ virQEMUCapsCacheNew(const char *libDir,
|
|||||||
if (uname(&uts) == 0)
|
if (uname(&uts) == 0)
|
||||||
priv->kernelVersion = g_strdup_printf("%s %s", uts.release, uts.version);
|
priv->kernelVersion = g_strdup_printf("%s %s", uts.release, uts.version);
|
||||||
|
|
||||||
|
priv->cpuData = virCPUDataGetHost();
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
return cache;
|
return cache;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user