]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Use maximum guest memory size when getting NUMA placement advice
authorPeter Krempa <pkrempa@redhat.com>
Fri, 4 Oct 2013 09:11:31 +0000 (11:11 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 4 Oct 2013 12:57:54 +0000 (14:57 +0200)
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.

src/qemu/qemu_process.c

index 7a30a5ed4e40f70e495895663ee16b0f8e597519..079f062bcd6613f4d66d13160574c43386ba1558 100644 (file)
@@ -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;