Files
qemu-ios/hw
Stefan Hajnoczi d4c19cdeeb virtio-serial: add missing virtio_detach_element() call
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: amit.shah@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Tested-by: Ladi Prosek <lprosek@redhat.com>
Reviewed-by: Ladi Prosek <lprosek@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2016-10-10 01:16:58 +03:00
..
2016-10-04 13:28:07 +01:00
2016-09-13 18:12:34 +03:00
2016-10-04 13:28:09 +01:00
…
2016-09-22 18:13:08 +01:00
2016-09-29 12:07:51 +01:00
…
2016-10-04 13:28:08 +01:00
2016-09-23 11:42:52 +08:00
2016-09-08 18:05:21 +04:00
2016-09-23 11:42:52 +08:00
2016-07-29 00:07:09 +03:00
2016-09-22 18:13:08 +01:00
2016-09-15 15:32:22 +03:00
2016-09-29 11:43:22 +08:00
2016-10-04 13:28:07 +01:00
2016-09-15 15:32:22 +03:00
2016-10-04 13:28:07 +01:00