[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>
- Re: [Qemu-devel] [PATCH 1/3] virtio: add virtio_detach_element(), (continued)
[Qemu-devel] [PATCH 2/3] virtio-blk: add missing virtio_detach_element() call, Stefan Hajnoczi, 2016/09/19
[Qemu-devel] [PATCH 3/3] virtio-serial: add missing virtio_detach_element() call, Stefan Hajnoczi, 2016/09/19
- Re: [Qemu-devel] [PATCH 3/3] virtio-serial: add missing virtio_detach_element() call,
Ladi Prosek <=
Re: [Qemu-devel] [PATCH 0/3] virtio: detach VirtQueueElements freed by reset, Stefan Hajnoczi, 2016/09/27