← Prev in month ← Prev in thread

Re: [virtio-dev] Re: [PATCH v6] vsock: add vsock device

From
Stefan Hajnoczi <>
Date
2016-05-03T12:46:16+00:00
ID
Thread
Re: [virtio-dev] Re: [PATCH v6] vsock: add vsock device
On Fri, Apr 29, 2016 at 10:17:15AM +0100, Ian Campbell wrote:
> On 28 April 2016 at 17:06, Stefan Hajnoczi <> wrote:
> > Interestingly the vhost "backend" uses a workqueue and a send packet
> > list so it doesn't block.  I'll take a look at using the same approach
> > in virtio_transport.c.
> 
> Doesn't the use of a list like this open up the issue of the frontend
> requiring the backend to queue an arbitrarily large number of pending
> replies (by send TX requests requiring a response more quickly than it
> populates the RX ring, either by mistake or by being malicious?)

Yes, this is why the backend should stop processing if the rx ring
becomes empty.

Stefan
← Prev in month ← Prev in thread