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

2016-03-31 Thread Jason Wang
On 03/28/2016 08:34 PM, Pooja Dhannawat wrote: > nc_sendv_compat has a huge stack usage of 69680 bytes approx. > Moving large arrays to heap to reduce stack usage. > > Reviewed-by: Stefan Hajnoczi > Signed-off-by: Pooja Dhannawat > --- > net/net.c | 13 + > 1 file changed, 9 insert

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

2016-03-31 Thread Pooja Dhannawat
On Thu, Mar 31, 2016 at 3:28 PM, Stefan Hajnoczi wrote: > On Mon, Mar 28, 2016 at 06:04:11PM +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. > > > > Reviewed-by: Stefan Hajnoczi > > Signed-off-

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

2016-03-31 Thread Stefan Hajnoczi
On Mon, Mar 28, 2016 at 06:04:11PM +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. > > Reviewed-by: Stefan Hajnoczi > Signed-off-by: Pooja Dhannawat > --- > net/net.c | 13 + > 1 file

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

2016-03-28 Thread Pooja Dhannawat
nc_sendv_compat has a huge stack usage of 69680 bytes approx. Moving large arrays to heap to reduce stack usage. Reviewed-by: Stefan Hajnoczi 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 inde