qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 3/3] virtio-serial: add missing virtio_detach_el


From: Ladi Prosek
Subject: Re: [Qemu-devel] [PATCH 3/3] virtio-serial: add missing virtio_detach_element() call
Date: Fri, 30 Sep 2016 12:08:03 +0200

On Mon, Sep 19, 2016 at 3:28 PM, Stefan Hajnoczi <address@hidden> wrote:
> Ports enter a "throttled" state when writing to the chardev would block.
> The current output VirtQueueElement is kept around until the chardev
> becomes writable again.
>
> There are several places in the virtio-serial lifecycle where the
> VirtQueueElement should be thrown away.  For example, if the virtio
> device is reset then virtqueue elements are no longer valid.
>
> This patch adds the discard_throttle_data() function to unmap the
> scatter-gather list and decrement vq->inuse.  This ensures that the
> VirtQueueElement is freed properly.
>
> Cc: address@hidden
> Signed-off-by: Stefan Hajnoczi <address@hidden>

I have tested this patch with a simple serial stress test to exercise
the code paths.

Tested-by: Ladi Prosek <address@hidden>
Reviewed-by: Ladi Prosek <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]