Re: [PATCH slof v2] virtio: Fix vring allocation

2015-03-13 Thread Thomas Huth
On Fri, 13 Mar 2015 20:42:03 +1100 Alexey Kardashevskiy wrote: > The value returned by virtio_vring_size() is used to allocate memory > for vring. The used descriptor list (array of vring_used_elem) is > counted by the header - vring_used struct - is not. > > This fixes virtio_vring_size() to re

Re: [PATCH slof v2] virtio: Fix vring allocation

2015-03-13 Thread Nikunj A Dadhania
Alexey Kardashevskiy writes: > The value returned by virtio_vring_size() is used to allocate memory > for vring. The used descriptor list (array of vring_used_elem) is > counted by the header - vring_used struct - is not. > > This fixes virtio_vring_size() to return the correct size. > At the mom

[PATCH slof v2] virtio: Fix vring allocation

2015-03-13 Thread Alexey Kardashevskiy
The value returned by virtio_vring_size() is used to allocate memory for vring. The used descriptor list (array of vring_used_elem) is counted by the header - vring_used struct - is not. This fixes virtio_vring_size() to return the correct size. At the moment rings are quite small (256) and alloca