mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
qemu: Search all nodes for shared memory access
In commit 686eb7a24f
, the break was not considered part of the
condition, hence breaking after first node when searching.
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
7743454165
commit
68d4245d21
@ -4781,9 +4781,10 @@ qemuProcessLaunch(virConnectPtr conn,
|
|||||||
if (!shmem && vm->def->mem.nhugepages) {
|
if (!shmem && vm->def->mem.nhugepages) {
|
||||||
for (i = 0; i < virDomainNumaGetNodeCount(vm->def->numa); i++) {
|
for (i = 0; i < virDomainNumaGetNodeCount(vm->def->numa); i++) {
|
||||||
if (virDomainNumaGetNodeMemoryAccessMode(vm->def->numa, i) ==
|
if (virDomainNumaGetNodeMemoryAccessMode(vm->def->numa, i) ==
|
||||||
VIR_NUMA_MEM_ACCESS_SHARED)
|
VIR_NUMA_MEM_ACCESS_SHARED) {
|
||||||
shmem = true;
|
shmem = true;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user