[Qemu-devel] [PATCH v4] net: Allocating Large sized arrays to heap

2016-03-19 Thread Pooja Dhannawat
nc_sendv_compat has a huge stack usage of 69680 bytes approx. Moving large arrays to heap to reduce stack usage. Signed-off-by: Pooja Dhannawat --- net/net.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/net/net.c b/net/net.c index b0c832e..663da13 100644 ---

Re: [Qemu-devel] [PATCH v4] net: Allocating Large sized arrays to heap

2016-03-18 Thread Stefan Hajnoczi
On Thu, Mar 17, 2016 at 09:17:40PM +0530, Pooja Dhannawat wrote: > nc_sendv_compat has a huge stack usage of 69680 bytes approx. > Moving large arrays to heap to reduce stack usage. > > Signed-off-by: Pooja Dhannawat > --- > net/net.c | 13 + > 1 file changed, 9 insertions(+), 4 dele