mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-24 04:12:20 +00:00
qemuDomainPinIOThread: Update live definition after process pinning
Otherwise we'll keep using the new pinning value even if it can't be applied to the thread. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2040555 Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
dcfa6c650d
commit
ce20fe5c2a
@ -5018,10 +5018,6 @@ qemuDomainPinIOThread(virDomainPtr dom,
|
|||||||
goto endjob;
|
goto endjob;
|
||||||
}
|
}
|
||||||
|
|
||||||
virBitmapFree(iothrid->cpumask);
|
|
||||||
iothrid->cpumask = virBitmapNewCopy(pcpumap);
|
|
||||||
iothrid->autofill = false;
|
|
||||||
|
|
||||||
/* Configure the corresponding cpuset cgroup before set affinity. */
|
/* Configure the corresponding cpuset cgroup before set affinity. */
|
||||||
if (virCgroupHasController(priv->cgroup,
|
if (virCgroupHasController(priv->cgroup,
|
||||||
VIR_CGROUP_CONTROLLER_CPUSET)) {
|
VIR_CGROUP_CONTROLLER_CPUSET)) {
|
||||||
@ -5039,6 +5035,10 @@ qemuDomainPinIOThread(virDomainPtr dom,
|
|||||||
if (virProcessSetAffinity(iothrid->thread_id, pcpumap, false) < 0)
|
if (virProcessSetAffinity(iothrid->thread_id, pcpumap, false) < 0)
|
||||||
goto endjob;
|
goto endjob;
|
||||||
|
|
||||||
|
virBitmapFree(iothrid->cpumask);
|
||||||
|
iothrid->cpumask = virBitmapNewCopy(pcpumap);
|
||||||
|
iothrid->autofill = false;
|
||||||
|
|
||||||
qemuDomainSaveStatus(vm);
|
qemuDomainSaveStatus(vm);
|
||||||
|
|
||||||
if (g_snprintf(paramField, VIR_TYPED_PARAM_FIELD_LENGTH,
|
if (g_snprintf(paramField, VIR_TYPED_PARAM_FIELD_LENGTH,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user