Re: [Qemu-devel] [PATCH 04/12] char: introduce backend tx queue

2011-08-01 Thread Anthony Liguori
On 08/01/2011 10:33 AM, Stefan Hajnoczi wrote: On Mon, Aug 1, 2011 at 3:23 PM, Anthony Liguori wrote: While the front tx queue has no flow control, the backend tx queue uses a polling function to determine when the front end can receive data. To convert this to the new queue model, we simply t

Re: [Qemu-devel] [PATCH 04/12] char: introduce backend tx queue

2011-08-01 Thread Stefan Hajnoczi
On Mon, Aug 1, 2011 at 3:23 PM, Anthony Liguori wrote: > While the front tx queue has no flow control, the backend tx queue uses a > polling function to determine when the front end can receive data. > > To convert this to the new queue model, we simply try to flush the backend tx > queue whenever

[Qemu-devel] [PATCH 04/12] char: introduce backend tx queue

2011-08-01 Thread Anthony Liguori
While the front tx queue has no flow control, the backend tx queue uses a polling function to determine when the front end can receive data. To convert this to the new queue model, we simply try to flush the backend tx queue whenever we poll. We then return the remaining space in the queue as the