diff options
author | Greg Kurz <groug@kaod.org> | 2016-09-30 17:13:24 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-10-10 01:16:59 +0300 |
commit | ba10b9c0038e201d7ea28a9e3908928439ff7fa4 (patch) | |
tree | cf73a1111e76d7c9459b674e44d6dc8c9f83e057 /hw/net/ne2000.h | |
parent | ba7eadb5927633d487064b518bf6fd001369e30c (diff) |
virtio-net: handle virtio_net_receive() 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.
Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
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 'hw/net/ne2000.h')
0 files changed, 0 insertions, 0 deletions