Received: from eggs.gnu.org ([2001:4830:134:3::10]:36688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMe50-0001Rg-A3 for qemu-devel@nongnu.org; Mon, 11 Jul 2016 12:29:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMe4u-00069M-2a for qemu-devel@nongnu.org; Mon, 11 Jul 2016 12:29:09 -0400 Received: from mail-qk0-x244.google.com ([2607:f8b0:400d:c09::244]:34645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMe4t-00069G-Uh for qemu-devel@nongnu.org; Mon, 11 Jul 2016 12:29:04 -0400 Received: by mail-qk0-x244.google.com with SMTP id 82so15658473qko.1 for ; Mon, 11 Jul 2016 09:29:03 -0700 (PDT) Sender: Richard Henderson References: <1468228082-7492-1-git-send-email-pl@kamp.de> <1468228082-7492-2-git-send-email-pl@kamp.de> From: Richard Henderson Message-ID: <2b93f05d-dcd4-2201-612f-3aabbd05c08c@twiddle.net> Date: Mon, 11 Jul 2016 09:28:58 -0700 MIME-Version: 1.0 In-Reply-To: <1468228082-7492-2-git-send-email-pl@kamp.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH V4 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 07/11/2016 02:07 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. > > Signed-off-by: Peter Lieven > --- > include/sysemu/os-posix.h | 23 +++++++++++++++++++++++ > util/oslib-posix.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 67 insertions(+) Reviewed-by: Richard Henderson r~