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 <p...@kamp.de> > --- > include/sysemu/os-posix.h | 27 ++++++++++++++++++++++++++ > util/oslib-posix.c | 48 > +++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 75 insertions(+)
Reviewed-by: Richard Henderson <r...@twiddle.net> r~