From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=41801 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnP9u-0001fE-Ct for qemu-devel@nongnu.org; Thu, 10 Feb 2011 00:33:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PnP9p-0004ox-RR for qemu-devel@nongnu.org; Thu, 10 Feb 2011 00:33:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:14765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PnP9p-0004ok-GC for qemu-devel@nongnu.org; Thu, 10 Feb 2011 00:33:33 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p1A5XVWp000840 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 10 Feb 2011 00:33:31 -0500 From: Jason Wang MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19795.30883.336459.524149@gargle.gargle.HOWL> Date: Thu, 10 Feb 2011 13:33:23 +0800 Subject: [Qemu-devel] [PATCHv3 0/2] vhost: fix tap link down In-Reply-To: References: List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org, jasowang@redhat.com, armbru@redhat.com, lcapitulino@redhat.com, alex.williamson@redhat.com, Amit Shah , glommer@redhat.com Michael S. Tsirkin writes: > 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(-) > Acked-by: Jason Wang > -- > 1.7.3.2.91.g446ac >