提交 2e59a005 编写于 作者: D Daniel Veillard

fix bits/bytes memory request mismatches

* src/qemu_conf.c src/uml_conf.c: fix a couple of places where
  we were requesting 8 times the required amount of memory,
  patch by Dave Allan
daniel
上级 ccae0a40
Fri Dec 12 11:37:16 CET 2008 Daniel Veillard <veillard@redhat.com>
* src/qemu_conf.c src/uml_conf.c: fix a couple of places where
we were requesting 8 times the required amount of memory,
patch by Dave Allan
Fri Dec 12 10:45:17 CET 2008 Guido Günther <agx@sigxcpu.org>
* docs/devhelp/Makefile.am: look for devhelp.xsl in $(srcdir)
......
......@@ -324,7 +324,7 @@ qemudCapsInitNUMA(virCapsPtr caps)
for (n = 0 ; n <= numa_max_node() ; n++) {
if (numa_node_to_cpus(n, mask, MAX_CPUS_MASK_LEN) < 0)
if (numa_node_to_cpus(n, mask, MAX_CPUS_MASK_LEN / 8) < 0)
goto cleanup;
for (ncpus = 0, i = 0 ; i < MAX_CPUS ; i++)
......
......@@ -80,7 +80,7 @@ umlCapsInitNUMA(virCapsPtr caps)
for (n = 0 ; n <= numa_max_node() ; n++) {
if (numa_node_to_cpus(n, mask, MAX_CPUS_MASK_LEN) < 0)
if (numa_node_to_cpus(n, mask, MAX_CPUS_MASK_LEN / 8) < 0)
goto cleanup;
for (ncpus = 0, i = 0 ; i < MAX_CPUS ; i++)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册