summary refs log tree commit diff stats
path: root/hw/core/qdev-properties-system.c
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2016-09-30 17:13:24 +0200
committerMichael S. Tsirkin <mst@redhat.com>2016-10-10 01:16:59 +0300
commitba10b9c0038e201d7ea28a9e3908928439ff7fa4 (patch)
treecf73a1111e76d7c9459b674e44d6dc8c9f83e057 /hw/core/qdev-properties-system.c
parentba7eadb5927633d487064b518bf6fd001369e30c (diff)
downloadfocaccia-qemu-ba10b9c0038e201d7ea28a9e3908928439ff7fa4.tar.gz
focaccia-qemu-ba10b9c0038e201d7ea28a9e3908928439ff7fa4.zip
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/core/qdev-properties-system.c')
0 files changed, 0 insertions, 0 deletions