mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
qemu: Exit job on error path of qemuDomainSetVcpusFlags()
Commite105dc9814
moved some code but didn't adjust the jump labels so that the job would be terminated. (cherry picked from commit0df2f0404f
)
This commit is contained in:
parent
5e7b535238
commit
c518518bd0
@ -4604,13 +4604,13 @@ qemuDomainSetVcpusFlags(virDomainPtr dom, unsigned int nvcpus,
|
|||||||
|
|
||||||
if (flags & VIR_DOMAIN_AFFECT_LIVE && !(flags & VIR_DOMAIN_VCPU_GUEST)) {
|
if (flags & VIR_DOMAIN_AFFECT_LIVE && !(flags & VIR_DOMAIN_VCPU_GUEST)) {
|
||||||
if (virCgroupNewEmulator(priv->cgroup, false, &cgroup_temp) < 0)
|
if (virCgroupNewEmulator(priv->cgroup, false, &cgroup_temp) < 0)
|
||||||
goto cleanup;
|
goto endjob;
|
||||||
|
|
||||||
if (!(all_nodes = virNumaGetHostNodeset()))
|
if (!(all_nodes = virNumaGetHostNodeset()))
|
||||||
goto cleanup;
|
goto endjob;
|
||||||
|
|
||||||
if (!(all_nodes_str = virBitmapFormat(all_nodes)))
|
if (!(all_nodes_str = virBitmapFormat(all_nodes)))
|
||||||
goto cleanup;
|
goto endjob;
|
||||||
|
|
||||||
if (virCgroupGetCpusetMems(cgroup_temp, &mem_mask) < 0 ||
|
if (virCgroupGetCpusetMems(cgroup_temp, &mem_mask) < 0 ||
|
||||||
virCgroupSetCpusetMems(cgroup_temp, all_nodes_str) < 0)
|
virCgroupSetCpusetMems(cgroup_temp, all_nodes_str) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user