mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
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:
parent
ccae0a4074
commit
2e59a005fd
@ -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>
|
||||
|
||||
* 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++)
|
||||
|
Loading…
Reference in New Issue
Block a user