mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Ignore def->cpumask if emulatorpin is specified
If the vcpu placement is "static", it's just fine to ignore the def->cpumask if emulatorpin is specified.
This commit is contained in:
parent
5378effd57
commit
3635b41e15
@ -2618,7 +2618,8 @@ static int qemuProcessHook(void *data)
|
|||||||
|
|
||||||
/* This must be done after cgroup placement to avoid resetting CPU
|
/* This must be done after cgroup placement to avoid resetting CPU
|
||||||
* affinity */
|
* affinity */
|
||||||
if (qemuProcessInitCpuAffinity(h->driver, h->vm, h->nodemask) < 0)
|
if (!h->vm->def->cputune.emulatorpin &&
|
||||||
|
qemuProcessInitCpuAffinity(h->driver, h->vm, h->nodemask) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (qemuProcessInitNumaMemoryPolicy(h->vm, h->nodemask) < 0)
|
if (qemuProcessInitNumaMemoryPolicy(h->vm, h->nodemask) < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user