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

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 17:01:22 UTC 2015


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

bengen pushed a commit to branch master
in repository libguestfs.

commit ac378080e730df4a83d1d7b13e62c5bf17e9a4ac
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.
    (cherry picked from commit c24f242521e882380c28d0952007d8462040d998)
---
 src/guestfs-internal.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h
index 9a4ed4f..31d28aa 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