mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
qemu: Fix affinity typo
Fixes: 4c0398b5284d14c55eca51095673b6fadbbd85fb Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
8f474ceea0
commit
6c7ba7b496
@ -2653,7 +2653,7 @@ qemuProcessSetupPid(virDomainObjPtr vm,
|
||||
virDomainNumatuneMemMode mem_mode;
|
||||
virCgroupPtr cgroup = NULL;
|
||||
virBitmapPtr use_cpumask = NULL;
|
||||
virBitmapPtr afinity_cpumask = NULL;
|
||||
virBitmapPtr affinity_cpumask = NULL;
|
||||
g_autoptr(virBitmap) hostcpumap = NULL;
|
||||
g_autofree char *mem_mask = NULL;
|
||||
int ret = -1;
|
||||
@ -2679,7 +2679,7 @@ qemuProcessSetupPid(virDomainObjPtr vm,
|
||||
* its config file */
|
||||
if (qemuProcessGetAllCpuAffinity(&hostcpumap) < 0)
|
||||
goto cleanup;
|
||||
afinity_cpumask = hostcpumap;
|
||||
affinity_cpumask = hostcpumap;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -2720,11 +2720,11 @@ qemuProcessSetupPid(virDomainObjPtr vm,
|
||||
|
||||
}
|
||||
|
||||
if (!afinity_cpumask)
|
||||
afinity_cpumask = use_cpumask;
|
||||
if (!affinity_cpumask)
|
||||
affinity_cpumask = use_cpumask;
|
||||
|
||||
/* Setup legacy affinity. */
|
||||
if (afinity_cpumask && virProcessSetAffinity(pid, afinity_cpumask) < 0)
|
||||
if (affinity_cpumask && virProcessSetAffinity(pid, affinity_cpumask) < 0)
|
||||
goto cleanup;
|
||||
|
||||
/* Set scheduler type and priority, but not for the main thread. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user