[libvirt PATCH v2 19/20] virQEMUCapsCachePriv: Add host cpuid information

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx>
---
 src/qemu/qemu_capabilities.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index b2d5242264..5fa3111201 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -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;
 
-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux