mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
qemu: vcpupin: Always set affinity even when cgroups are supported
VM startup and CPU hotplug always set the affinity regardless of cgroups support. Use the same approach for the pinning API.
This commit is contained in:
parent
471741309d
commit
9958422d10
@ -5068,12 +5068,11 @@ qemuDomainPinVcpuFlags(virDomainPtr dom,
|
||||
goto endjob;
|
||||
if (qemuSetupCgroupCpusetCpus(cgroup_vcpu, pcpumap) < 0)
|
||||
goto endjob;
|
||||
} else {
|
||||
if (virProcessSetAffinity(qemuDomainGetVcpuPid(vm, vcpu),
|
||||
pcpumap) < 0)
|
||||
goto endjob;
|
||||
}
|
||||
|
||||
if (virProcessSetAffinity(qemuDomainGetVcpuPid(vm, vcpu), pcpumap) < 0)
|
||||
goto endjob;
|
||||
|
||||
virBitmapFree(vcpuinfolive->cpumask);
|
||||
vcpuinfolive->cpumask = pcpumaplive;
|
||||
pcpumaplive = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user