From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=34556 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnDAY-0002aD-9b for qemu-devel@nongnu.org; Wed, 09 Feb 2011 11:45:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PnDAX-0000pW-2n for qemu-devel@nongnu.org; Wed, 09 Feb 2011 11:45:30 -0500 Received: from mx1.redhat.com ([209.132.183.28]:32283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PnDAW-0000pQ-OW for qemu-devel@nongnu.org; Wed, 09 Feb 2011 11:45:28 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p19GjRg8014152 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 9 Feb 2011 11:45:27 -0500 Date: Wed, 9 Feb 2011 18:44:59 +0200 From: "Michael S. Tsirkin" Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCHv3 0/2] vhost: fix tap link down List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: armbru@redhat.com, alex.williamson@redhat.com, glommer@redhat.com, lcapitulino@redhat.com, jasowang@redhat.com, Amit Shah , qemu-devel@nongnu.org qemu makes it possible to disable link at tap which is not communicated to the guest but causes all packets to be dropped. With vhost-net at the moment it just keeps going. Fix by communicating to virtio net and have that stop vhost-net. Signed-off-by: Michael S. Tsirkin Reported-by: pradeep Changes from v2: comment tweaked split to two patches Changes from v1: fix link down after guest link is up Michael S. Tsirkin (2): net: notify peer about link status change vhost: disable on tap link down hw/virtio-net.c | 3 ++- net.c | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletions(-) -- 1.7.3.2.91.g446ac