mirror of https://gitee.com/openkylin/libvirt.git
qemu: Use maximum guest memory size when getting NUMA placement advice
When starting the VM the guest balloon driver is not loaded at that time. We need to ask numad for placement of the complete VM.
This commit is contained in:
parent
0bdefd9b04
commit
f8e2da01be
|
@ -3684,7 +3684,7 @@ int qemuProcessStart(virConnectPtr conn,
|
|||
(vm->def->numatune.memory.placement_mode ==
|
||||
VIR_NUMA_TUNE_MEM_PLACEMENT_MODE_AUTO)) {
|
||||
nodeset = virNumaGetAutoPlacementAdvice(vm->def->vcpus,
|
||||
vm->def->mem.cur_balloon);
|
||||
vm->def->mem.max_balloon);
|
||||
if (!nodeset)
|
||||
goto cleanup;
|
||||
|
||||
|
|
Loading…
Reference in New Issue