Re: [Xen-devel] [PATCH, RESEND] xen: allocate gntdev_copy_batch dynamically

2016-02-26 Thread Boris Ostrovsky
On 02/25/2016 04:25 PM, Arnd Bergmann wrote: struct gntdev_copy_batch is arguably too large to fit on the kernel stack, and we get a warning about the stack usage in gntdev_ioctl_grant_copy: drivers/xen/gntdev.c:949:1: error: the frame size of 1240 bytes is larger than 1024 bytes This changes

[Xen-devel] [PATCH, RESEND] xen: allocate gntdev_copy_batch dynamically

2016-02-25 Thread Arnd Bergmann
struct gntdev_copy_batch is arguably too large to fit on the kernel stack, and we get a warning about the stack usage in gntdev_ioctl_grant_copy: drivers/xen/gntdev.c:949:1: error: the frame size of 1240 bytes is larger than 1024 bytes This changes the code to us a dynamic allocation instead.