From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCh0a-0003C1-5Q for qemu-devel@nongnu.org; Mon, 04 Mar 2013 20:49:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCh0U-0007Wc-P4 for qemu-devel@nongnu.org; Mon, 04 Mar 2013 20:49:36 -0500 Received: from 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:1d0::1]:60938 helo=mnementh.archaic.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCh0U-0007VY-H6 for qemu-devel@nongnu.org; Mon, 04 Mar 2013 20:49:30 -0500 From: Peter Maydell Date: Tue, 5 Mar 2013 01:12:01 +0000 Message-Id: <1362445931-4383-4-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1362445931-4383-1-git-send-email-peter.maydell@linaro.org> References: <1362445931-4383-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 03/13] oslib-posix: Align to permit transparent hugepages on ARM Linux List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno , Blue Swirl Cc: Anthony Liguori , qemu-devel@nongnu.org, Paul Brook 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 Reviewed-by: Paolo Bonzini --- util/oslib-posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/oslib-posix.c b/util/oslib-posix.c index b4152fb..433dd68 100644 --- a/util/oslib-posix.c +++ b/util/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. */ -- 1.7.9.5