qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH for 6.2 29/49] bsd-user: Add system independent stack, data a


From: Richard Henderson
Subject: Re: [PATCH for 6.2 29/49] bsd-user: Add system independent stack, data and text limiting
Date: Mon, 9 Aug 2021 11:05:07 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 8/7/21 11:42 AM, Warner Losh wrote:
From: Warner Losh<imp@FreeBSD.org>

Eliminate the x86 specific stack stuff in favor of more generic control
over the process size:
     target_maxtsiz  max text size
     target_dfldsiz  initial data size limit
     target_maxdsiz  max data size
     target_dflssiz  initial stack size limit
     target_maxssiz  max stack size
     target_sgrowsiz amount to grow stack
These can be set on a per-arch basis, and the stack size can be set
on the command line. Adjust the stack size parameters at startup.

Signed-off-by: Stacey Son<sson@FreeBSD.org>
Signed-off-by: Warner Losh<imp@bsdimp.com>

Sponsored by:           Netflix
---
  bsd-user/elfload.c |  2 +-
  bsd-user/main.c    | 51 +++++++++++++++++++++++++++++++++-------------
  bsd-user/qemu.h    |  7 ++++++-
  3 files changed, 44 insertions(+), 16 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]