mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
Fix crash cpu_shares change event crash on domain startup
Introduced by commit 0dce260
.
qemuDomainEventQueue was called with qemuDomainObjPrivatePtr instead
of virQEMUDriverPtr.
https://bugzilla.redhat.com/show_bug.cgi?id=1147494
This commit is contained in:
parent
1be67cd31b
commit
e26bbf49cc
@ -674,7 +674,8 @@ qemuSetupCpusetCgroup(virDomainObjPtr vm,
|
||||
|
||||
|
||||
static int
|
||||
qemuSetupCpuCgroup(virDomainObjPtr vm)
|
||||
qemuSetupCpuCgroup(virQEMUDriverPtr driver,
|
||||
virDomainObjPtr vm)
|
||||
{
|
||||
qemuDomainObjPrivatePtr priv = vm->privateData;
|
||||
virObjectEventPtr event = NULL;
|
||||
@ -711,7 +712,7 @@ qemuSetupCpuCgroup(virDomainObjPtr vm)
|
||||
}
|
||||
|
||||
if (event)
|
||||
qemuDomainEventQueue(vm->privateData, event);
|
||||
qemuDomainEventQueue(driver, event);
|
||||
}
|
||||
|
||||
return 0;
|
||||
@ -845,7 +846,7 @@ qemuSetupCgroup(virQEMUDriverPtr driver,
|
||||
if (qemuSetupMemoryCgroup(vm) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (qemuSetupCpuCgroup(vm) < 0)
|
||||
if (qemuSetupCpuCgroup(driver, vm) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (qemuSetupCpusetCgroup(vm, nodemask, caps) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user