Re: [PATCH slof] 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] 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