numad: Divide cur_balloon by 1024 before passing it to numad

Numad expects MB by default.
This commit is contained in:
Osier Yang
2012-05-08 16:57:37 -06:00
committed by Eric Blake
parent d70f2e117a
commit a00efddab6
+1 -1
View File
@@ -1773,7 +1773,7 @@ qemuGetNumadAdvice(virDomainDefPtr def)
cmd = virCommandNewArgList(NUMAD, "-w", NULL);
virCommandAddArgFormat(cmd, "%d:%llu", def->vcpus,
def->mem.cur_balloon);
VIR_DIV_UP(def->mem.cur_balloon, 1024));
virCommandSetOutputBuffer(cmd, &output);