The virresctrl will use this as well and we need to have that info after restart
to properly clean up /sys/fs/resctrl.
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
if (!virCgroupAvailable())
goto done;
- priv->machineName = qemuDomainGetMachineName(vm);
- if (!priv->machineName)
- goto cleanup;
-
virCgroupFree(&priv->cgroup);
if (virCgroupNewDetectMachine(vm->def->name,
if (qemuHostdevUpdateActiveDomainDevices(driver, obj->def) < 0)
goto error;
+ priv->machineName = qemuDomainGetMachineName(obj);
+ if (!priv->machineName)
+ goto error;
+
if (qemuConnectCgroup(obj) < 0)
goto error;