From: Peter Krempa Date: Fri, 4 Oct 2013 09:11:31 +0000 (+0200) Subject: qemu: Use maximum guest memory size when getting NUMA placement advice X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f8e2da01be0f9199ecfde1148b74173d68f393db;p=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. --- diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 7a30a5ed4e..079f062bcd 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -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;