vhost: disable on tap link down
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 9 Feb 2011 16:45:09 +0000 (18:45 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 20 Feb 2011 17:06:21 +0000 (18:06 +0100)
commit1e7d1c5a6ecd2279388e687dc78a308de952d312
tree881f6b5aabbd155837e86ede3eb781b77381b66f
parentc2ccaa035c2bc48daa465c646b08804aa99b581e
vhost: disable on tap link down

qemu makes it possible to disable link at tap which is not communicated
to the guest but causes all packets to be dropped.

When vhost-net is enabled, vhost needs to be aware of both the virtio
link_down and the peer link_down. we switch to userspace emulation when
either is down.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reported-by: pradeep <psuriset@linux.vnet.ibm.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/virtio-net.c