aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-11-20 13:15:56 +0000
committerPeter Maydell <peter.maydell@linaro.org>2012-11-20 13:15:56 +0000
commitaac9acfa224e616d72e090d700edb3a118927b4b (patch)
treee6e7257410aa84af400dccc29ab15a141c0b9263
parentfd9d6e0ab93ead69bc906617828577519c3f27d2 (diff)
oslib-posix: Align to permit transparent hugepages on ARM Linuxkvm-arm-v14
ARM Linux (like x86-64 Linux) can use transparent hugepages for KVM if memory blocks are 2MiB aligned; set QEMU_VMALLOC_ALIGN accordingly. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--oslib-posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/oslib-posix.c b/oslib-posix.c
index 9db9c3d8af..d25b52a0a8 100644
--- a/oslib-posix.c
+++ b/oslib-posix.c
@@ -35,7 +35,7 @@
extern int daemon(int, int);
#endif
-#if defined(__linux__) && defined(__x86_64__)
+#if defined(__linux__) && (defined(__x86_64__) || defined(__arm__))
/* Use 2 MiB alignment so transparent hugepages can be used by KVM.
Valgrind does not support alignments larger than 1 MiB,
therefore we need special code which handles running on Valgrind. */