Re: [RFC PATCH net-next 1/6] virtio: make sure used event never go backwards

2014-10-16 Thread Jason Wang
On 10/15/2014 07:38 PM, Michael S. Tsirkin wrote: > On Wed, Oct 15, 2014 at 06:44:41PM +0800, Jason Wang wrote: >> On 10/15/2014 06:32 PM, Michael S. Tsirkin wrote: >>> On Wed, Oct 15, 2014 at 06:13:19PM +0800, Jason Wang wrote: On 10/15/2014 05:34 PM, Michael S. Tsirkin wrote: > On Wed, O

Re: [RFC PATCH net-next 1/6] virtio: make sure used event never go backwards

2014-10-15 Thread Michael S. Tsirkin
On Wed, Oct 15, 2014 at 06:44:41PM +0800, Jason Wang wrote: > On 10/15/2014 06:32 PM, Michael S. Tsirkin wrote: > > On Wed, Oct 15, 2014 at 06:13:19PM +0800, Jason Wang wrote: > >> On 10/15/2014 05:34 PM, Michael S. Tsirkin wrote: > >>> On Wed, Oct 15, 2014 at 03:25:25PM +0800, Jason Wang wrote: >

Re: [RFC PATCH net-next 1/6] virtio: make sure used event never go backwards

2014-10-15 Thread Jason Wang
On 10/15/2014 06:32 PM, Michael S. Tsirkin wrote: > On Wed, Oct 15, 2014 at 06:13:19PM +0800, Jason Wang wrote: >> On 10/15/2014 05:34 PM, Michael S. Tsirkin wrote: >>> On Wed, Oct 15, 2014 at 03:25:25PM +0800, Jason Wang wrote: This patch checks the new event idx to make sure used event idx n

Re: [RFC PATCH net-next 1/6] virtio: make sure used event never go backwards

2014-10-15 Thread Michael S. Tsirkin
On Wed, Oct 15, 2014 at 06:13:19PM +0800, Jason Wang wrote: > On 10/15/2014 05:34 PM, Michael S. Tsirkin wrote: > > On Wed, Oct 15, 2014 at 03:25:25PM +0800, Jason Wang wrote: > >> This patch checks the new event idx to make sure used event idx never > >> goes back. This is used to synchronize the

Re: [RFC PATCH net-next 1/6] virtio: make sure used event never go backwards

2014-10-15 Thread Jason Wang
On 10/15/2014 05:34 PM, Michael S. Tsirkin wrote: > On Wed, Oct 15, 2014 at 03:25:25PM +0800, Jason Wang wrote: >> This patch checks the new event idx to make sure used event idx never >> goes back. This is used to synchronize the calls between >> virtqueue_enable_cb_delayed() and virtqueue_enable_

Re: [RFC PATCH net-next 1/6] virtio: make sure used event never go backwards

2014-10-15 Thread Michael S. Tsirkin
On Wed, Oct 15, 2014 at 03:25:25PM +0800, Jason Wang wrote: > This patch checks the new event idx to make sure used event idx never > goes back. This is used to synchronize the calls between > virtqueue_enable_cb_delayed() and virtqueue_enable_cb(). > > Cc: Rusty Russell > Cc: Michael S. Tsirkin

[RFC PATCH net-next 1/6] virtio: make sure used event never go backwards

2014-10-15 Thread Jason Wang
This patch checks the new event idx to make sure used event idx never goes back. This is used to synchronize the calls between virtqueue_enable_cb_delayed() and virtqueue_enable_cb(). Cc: Rusty Russell Cc: Michael S. Tsirkin Signed-off-by: Jason Wang --- drivers/virtio/virtio_ring.c |7 +++