mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 23:25:24 +00:00
Don't raise error message from cgroups if QEMU fails to start
The code to remove the cgroup after QEMU failed to startup could be obscuring a real error from earlier on. It is not neccessary to raise an error in this case, so tell cgroups to keep quiet * src/qemu/qemu_driver.c: Don't raise cgroups error in QEMU start cleanup code.
This commit is contained in:
parent
badfe6c75e
commit
b50d48b158
@ -2906,7 +2906,7 @@ cleanup:
|
|||||||
if (driver->securityDriver &&
|
if (driver->securityDriver &&
|
||||||
driver->securityDriver->domainReleaseSecurityLabel)
|
driver->securityDriver->domainReleaseSecurityLabel)
|
||||||
driver->securityDriver->domainReleaseSecurityLabel(vm);
|
driver->securityDriver->domainReleaseSecurityLabel(vm);
|
||||||
qemuRemoveCgroup(driver, vm, 0);
|
qemuRemoveCgroup(driver, vm, 1);
|
||||||
if ((vm->def->ngraphics == 1) &&
|
if ((vm->def->ngraphics == 1) &&
|
||||||
vm->def->graphics[0]->type == VIR_DOMAIN_GRAPHICS_TYPE_VNC &&
|
vm->def->graphics[0]->type == VIR_DOMAIN_GRAPHICS_TYPE_VNC &&
|
||||||
vm->def->graphics[0]->data.vnc.autoport)
|
vm->def->graphics[0]->data.vnc.autoport)
|
||||||
|
Loading…
Reference in New Issue
Block a user