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
This commit is contained in:
Daniel Veillard 2008-12-12 10:39:19 +00:00
parent ccae0a4074
commit 2e59a005fd
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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> Fri Dec 12 10:45:17 CET 2008 Guido Günther <agx@sigxcpu.org>
* docs/devhelp/Makefile.am: look for devhelp.xsl in $(srcdir) * docs/devhelp/Makefile.am: look for devhelp.xsl in $(srcdir)

View File

@ -324,7 +324,7 @@ qemudCapsInitNUMA(virCapsPtr caps)
for (n = 0 ; n <= numa_max_node() ; n++) { 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; goto cleanup;
for (ncpus = 0, i = 0 ; i < MAX_CPUS ; i++) for (ncpus = 0, i = 0 ; i < MAX_CPUS ; i++)

View File

@ -80,7 +80,7 @@ umlCapsInitNUMA(virCapsPtr caps)
for (n = 0 ; n <= numa_max_node() ; n++) { 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; goto cleanup;
for (ncpus = 0, i = 0 ; i < MAX_CPUS ; i++) for (ncpus = 0, i = 0 ; i < MAX_CPUS ; i++)