On Thu, Dec 05, 2013 at 11:34:28AM +0100, Paolo Bonzini wrote:
> Il 05/12/2013 10:24, Stefan Hajnoczi ha scritto:
> >> >
> >> > That's what already happens actually. vring_push has
> >> >
> >> >
> >> > +g_slice_free(VirtQueueElement, elem);
> >> > +
> >> > /* Don't touch vring if a fat
Il 05/12/2013 10:24, Stefan Hajnoczi ha scritto:
>> >
>> > That's what already happens actually. vring_push has
>> >
>> >
>> > +g_slice_free(VirtQueueElement, elem);
>> > +
>> > /* Don't touch vring if a fatal error occurred */
>> > if (vring->broken) {
>> > return;
>> >
On Wed, Dec 04, 2013 at 06:40:30PM +0100, Paolo Bonzini wrote:
> Il 04/12/2013 15:06, Stefan Hajnoczi ha scritto:
> > On Thu, Oct 10, 2013 at 05:07:18PM +0200, Paolo Bonzini wrote:
> >> @@ -298,30 +278,31 @@ static void handle_notify(EventNotifier *e)
> >> vring_disable_notification(s->vde
Il 04/12/2013 15:06, Stefan Hajnoczi ha scritto:
> On Thu, Oct 10, 2013 at 05:07:18PM +0200, Paolo Bonzini wrote:
>> @@ -298,30 +278,31 @@ static void handle_notify(EventNotifier *e)
>> vring_disable_notification(s->vdev, &s->vring);
>>
>> for (;;) {
>> -head = vring
On Thu, Oct 10, 2013 at 05:07:18PM +0200, Paolo Bonzini wrote:
> @@ -298,30 +278,31 @@ static void handle_notify(EventNotifier *e)
> vring_disable_notification(s->vdev, &s->vring);
>
> for (;;) {
> -head = vring_pop(s->vdev, &s->vring, iov, end, &out_num,
> &in_num)
Signed-off-by: Paolo Bonzini
---
hw/block/dataplane/virtio-blk.c | 85 ++---
hw/virtio/dataplane/vring.c | 51 +-
include/hw/virtio/dataplane/vring.h | 6 +--
3 files changed, 66 insertions(+), 76 deletions(-)
diff --git a/hw/block