Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx> --- src/qemu/qemu_capabilities.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 21b7e8050b..c2a885351f 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -4096,6 +4096,7 @@ struct _virQEMUCapsCachePriv { virArch hostArch; unsigned int microcodeVersion; char *kernelVersion; + char *kernelCmdline; char *hostCPUSignature; /* cache whether /dev/kvm is usable as runUid:runGuid */ @@ -4112,6 +4113,7 @@ virQEMUCapsCachePrivFree(void *privData) g_free(priv->libDir); g_free(priv->kernelVersion); + g_free(priv->kernelCmdline); g_free(priv->hostCPUSignature); g_free(priv); } @@ -5649,6 +5651,9 @@ virQEMUCapsCacheNew(const char *libDir, if (uname(&uts) == 0) priv->kernelVersion = g_strdup_printf("%s %s", uts.release, uts.version); + if (virFileReadValueString(&priv->kernelCmdline, "/proc/cmdline") < 0) + goto error; + cleanup: VIR_FREE(capsCacheDir); return cache; -- 2.31.1