diff options
| author | Greg Kurz | 2016-09-30 17:13:32 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2016-10-10 00:16:59 +0200 |
| commit | fa5e56c2a73501427203c34d702fccc2fbcb5eab (patch) | |
| tree | 8de836b6cdcca8fd05fb24c3e5f41c4f82c73d46 /include | |
| parent | virtio-net: handle virtio_net_receive() errors (diff) | |
| download | qemu-fa5e56c2a73501427203c34d702fccc2fbcb5eab.tar.gz qemu-fa5e56c2a73501427203c34d702fccc2fbcb5eab.tar.xz qemu-fa5e56c2a73501427203c34d702fccc2fbcb5eab.zip | |
virtio-net: handle virtio_net_flush_tx() errors
All these errors are caused by a buggy guest: let's switch the device to
the broken state instead of terminating QEMU. Also we detach the element
from the virtqueue and free it.
If this happens, virtio_net_flush_tx() also returns -EINVAL, so that all
callers can stop processing the virtqueue immediatly.
Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
