mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Restore machinename even without cgroups
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>
This commit is contained in:
parent
859186091c
commit
272649a1d7
@ -986,10 +986,6 @@ qemuConnectCgroup(virDomainObjPtr vm)
|
|||||||
if (!virCgroupAvailable())
|
if (!virCgroupAvailable())
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
priv->machineName = qemuDomainGetMachineName(vm);
|
|
||||||
if (!priv->machineName)
|
|
||||||
goto cleanup;
|
|
||||||
|
|
||||||
virCgroupFree(&priv->cgroup);
|
virCgroupFree(&priv->cgroup);
|
||||||
|
|
||||||
if (virCgroupNewDetectMachine(vm->def->name,
|
if (virCgroupNewDetectMachine(vm->def->name,
|
||||||
|
@ -7198,6 +7198,10 @@ qemuProcessReconnect(void *opaque)
|
|||||||
if (qemuHostdevUpdateActiveDomainDevices(driver, obj->def) < 0)
|
if (qemuHostdevUpdateActiveDomainDevices(driver, obj->def) < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
priv->machineName = qemuDomainGetMachineName(obj);
|
||||||
|
if (!priv->machineName)
|
||||||
|
goto error;
|
||||||
|
|
||||||
if (qemuConnectCgroup(obj) < 0)
|
if (qemuConnectCgroup(obj) < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user