]> Git Repo - qemu.git/commitdiff
oslib-posix: Align to permit transparent hugepages on ARM Linux
authorPeter Maydell <[email protected]>
Tue, 5 Mar 2013 00:34:40 +0000 (00:34 +0000)
committerPeter Maydell <[email protected]>
Tue, 5 Mar 2013 00:34:40 +0000 (00:34 +0000)
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 <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
util/oslib-posix.c

index b4152fb33cdf438df5f8edde93de0bd99be51947..433dd6888bf73af6808045e75e734eaa64bfb555 100644 (file)
@@ -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. */
This page took 0.026729 seconds and 4 git commands to generate.