Re: [virtio-dev] packed ring layout proposal

From
Michael S. Tsirkin <>
Date
2016-09-16T18:51:47+00:00
ID
Thread
Re: [virtio-dev] packed ring layout proposal
On Fri, Sep 16, 2016 at 10:28:19AM +0100, Stefan Hajnoczi wrote:
> On Fri, Sep 16, 2016 at 01:39:15AM +0300, Michael S. Tsirkin wrote:
> > Let's start a discussion around an alternative ring layout.
> > This has been in my kvm forum 2016 presentation.
> > The idea is to have a r/w descriptor in a ring structure,
> > replacing the used and available ring, index and descriptor
> > buffer.
> 
> Do you have pseudo-code?  I find it difficult to infer how it's supposed
> to work from the description.

Find a prototype implementation under tools/virtio/ringbench/ring.c in
latest Linux.