Received: from eggs.gnu.org ([2001:4830:134:3::10]:49867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcDAD-0002KF-86 for qemu-devel@nongnu.org; Tue, 23 Aug 2016 10:58:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcDA7-0003Im-9v for qemu-devel@nongnu.org; Tue, 23 Aug 2016 10:58:52 -0400 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]:32966) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcDA7-0003Ih-5J for qemu-devel@nongnu.org; Tue, 23 Aug 2016 10:58:47 -0400 Received: by mail-qt0-x242.google.com with SMTP id j37so3884281qta.0 for ; Tue, 23 Aug 2016 07:58:46 -0700 (PDT) Sender: Richard Henderson References: <1471962105-31267-1-git-send-email-pl@kamp.de> <1471962105-31267-2-git-send-email-pl@kamp.de> From: Richard Henderson Message-ID: Date: Tue, 23 Aug 2016 07:58:42 -0700 MIME-Version: 1.0 In-Reply-To: <1471962105-31267-2-git-send-email-pl@kamp.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH V7 1/6] oslib-posix: add helpers for stack alloc and free List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven , qemu-devel@nongnu.org Cc: kwolf@redhat.com, mreitz@redhat.com, pbonzini@redhat.com, mst@redhat.com, dgilbert@redhat.com, peter.maydell@linaro.org, eblake@redhat.com, armbru@redhat.com On 08/23/2016 07:21 AM, Peter Lieven wrote: > the allocated stack will be adjusted to the minimum supported stack size > by the OS and rounded up to be a multiple of the system pagesize. > Additionally an architecture dependent guard page is added to the stack > to catch stack overflows. The memory for the guard page is deductated from > stack memory so that the usable stack size is effectively reduced by the size > of one page. This is equivalent to how the glibc stack allocation routines > behave. > > Signed-off-by: Peter Lieven > --- > include/sysemu/os-posix.h | 27 ++++++++++++++++++++++++++ > util/oslib-posix.c | 48 +++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 75 insertions(+) Reviewed-by: Richard Henderson r~