Re: [Xen-devel] [PATCH] xen/blkfront: limit allocated memory size to actual use case

2020-01-17 Thread Roger Pau Monné
On Fri, Jan 17, 2020 at 03:39:55PM +0100, Juergen Gross wrote: > Today the Xen blkfront driver allocates memory for one struct > blkfront_ring_info for each communication ring. This structure is > statically sized for the maximum supported configuration resulting > in a size of more than 90 kB. >

[Xen-devel] [PATCH] xen/blkfront: limit allocated memory size to actual use case

2020-01-17 Thread Juergen Gross
Today the Xen blkfront driver allocates memory for one struct blkfront_ring_info for each communication ring. This structure is statically sized for the maximum supported configuration resulting in a size of more than 90 kB. As the main size contributor is one array inside the struct, the memory a