From: Paolo Bonzini Subject: [PATCH kvm-unit-tests 16/18] arm: only align CPU stacks to one page Date: Tue, 24 Oct 2017 17:21:43 +0200 Message-ID: <20171024152145.28456-17-pbonzini@redhat.com> References: <20171024152145.28456-1-pbonzini@redhat.com> Cc: drjones@redhat.com, david@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mail-wm0-f65.google.com ([74.125.82.65]:52589 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932429AbdJXPWM (ORCPT ); Tue, 24 Oct 2017 11:22:12 -0400 Received: by mail-wm0-f65.google.com with SMTP id 78so14228097wmb.1 for ; Tue, 24 Oct 2017 08:22:11 -0700 (PDT) In-Reply-To: <20171024152145.28456-1-pbonzini@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: vmalloc is not able to provide allocations with alignment greater than PAGE_SIZE, so avoid them. Signed-off-by: Paolo Bonzini --- lib/arm/asm/thread_info.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/arm/asm/thread_info.h b/lib/arm/asm/thread_info.h index 9f0c14d..c2ecebb 100644 --- a/lib/arm/asm/thread_info.h +++ b/lib/arm/asm/thread_info.h @@ -38,7 +38,7 @@ static inline void *thread_stack_alloc(void) { - void *sp = memalign(THREAD_SIZE, THREAD_SIZE); + void *sp = memalign(PAGE_SIZE, THREAD_SIZE); return sp + THREAD_START_SP; } -- 2.14.2