[Pkg-libvirt-commits] [libguestfs] 208/384: aarch64: Increase default appliance memory size on aarch64.

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 16:57:09 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit c24f242521e882380c28d0952007d8462040d998
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Sat Jan 24 15:40:05 2015 +0000

    aarch64: Increase default appliance memory size on aarch64.
    
    Kernel 3.19 has problems uncompressing the RAM disk with <= 500 MB.
    (This is likely to be a kernel bug)
    
    64 KB pages are common on aarch64, so treat this case the same as ppc,
    and use a larger default appliance memory size.
    
    Thanks: Laszlo Ersek for help and reproducing the bug.
---
 src/guestfs-internal.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h
index d438be3..573c3da 100644
--- a/src/guestfs-internal.h
+++ b/src/guestfs-internal.h
@@ -68,6 +68,16 @@
 #  define MIN_MEMSIZE 256
 #endif
 
+/* Kernel 3.19 is unable to uncompress the initramfs on aarch64 unless
+ * we have > 500 MB of space.  This looks like a kernel bug (earlier
+ * kernels have no problems).  However since 64 KB pages are also
+ * common on aarch64, treat this like the ppc case above.
+ */
+#ifdef __aarch64__
+#  define DEFAULT_MEMSIZE 768
+#  define MIN_MEMSIZE 256
+#endif
+
 /* Valgrind has a fairly hefty memory overhead.  Using the defaults
  * caused the C API tests to fail.
  */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list