|
|
ffd6ed |
From 28ca86d12286aad430378cbf416c966cdfddfbdf Mon Sep 17 00:00:00 2001
|
|
|
ffd6ed |
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
|
ffd6ed |
Date: Sat, 24 Jan 2015 15:40:05 +0000
|
|
|
ffd6ed |
Subject: [PATCH] aarch64: Increase default appliance memory size on aarch64.
|
|
|
ffd6ed |
|
|
|
ffd6ed |
Kernel 3.19 has problems uncompressing the RAM disk with <= 500 MB.
|
|
|
ffd6ed |
(This is likely to be a kernel bug)
|
|
|
ffd6ed |
|
|
|
ffd6ed |
64 KB pages are common on aarch64, so treat this case the same as ppc,
|
|
|
ffd6ed |
and use a larger default appliance memory size.
|
|
|
ffd6ed |
|
|
|
ffd6ed |
Thanks: Laszlo Ersek for help and reproducing the bug.
|
|
|
ffd6ed |
(cherry picked from commit c24f242521e882380c28d0952007d8462040d998)
|
|
|
ffd6ed |
---
|
|
|
ffd6ed |
src/guestfs-internal.h | 10 ++++++++++
|
|
|
ffd6ed |
1 file changed, 10 insertions(+)
|
|
|
ffd6ed |
|
|
|
ffd6ed |
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h
|
|
|
ffd6ed |
index d5de345..d9ccf5f 100644
|
|
|
ffd6ed |
--- a/src/guestfs-internal.h
|
|
|
ffd6ed |
+++ b/src/guestfs-internal.h
|
|
|
ffd6ed |
@@ -68,6 +68,16 @@
|
|
|
ffd6ed |
# define MIN_MEMSIZE 256
|
|
|
ffd6ed |
#endif
|
|
|
ffd6ed |
|
|
|
ffd6ed |
+/* Kernel 3.19 is unable to uncompress the initramfs on aarch64 unless
|
|
|
ffd6ed |
+ * we have > 500 MB of space. This looks like a kernel bug (earlier
|
|
|
ffd6ed |
+ * kernels have no problems). However since 64 KB pages are also
|
|
|
ffd6ed |
+ * common on aarch64, treat this like the ppc case above.
|
|
|
ffd6ed |
+ */
|
|
|
ffd6ed |
+#ifdef __aarch64__
|
|
|
ffd6ed |
+# define DEFAULT_MEMSIZE 768
|
|
|
ffd6ed |
+# define MIN_MEMSIZE 256
|
|
|
ffd6ed |
+#endif
|
|
|
ffd6ed |
+
|
|
|
ffd6ed |
/* Valgrind has a fairly hefty memory overhead. Using the defaults
|
|
|
ffd6ed |
* caused the C API tests to fail.
|
|
|
ffd6ed |
*/
|
|
|
ffd6ed |
--
|
|
|
ffd6ed |
1.8.3.1
|
|
|
ffd6ed |
|