From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N34Ux-0002RM-Ec for qemu-devel@nongnu.org; Wed, 28 Oct 2009 05:07:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N34Us-0002Qs-8i for qemu-devel@nongnu.org; Wed, 28 Oct 2009 05:07:18 -0400 Received: from [199.232.76.173] (port=58322 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N34Us-0002Qp-4Z for qemu-devel@nongnu.org; Wed, 28 Oct 2009 05:07:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57119) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N34Ur-0005Rz-Ip for qemu-devel@nongnu.org; Wed, 28 Oct 2009 05:07:13 -0400 Date: Wed, 28 Oct 2009 11:07:08 +0200 From: Gleb Natapov Subject: Re: [Qemu-devel] accidental mistyping of command line kills networking Message-ID: <20091028090708.GT29477@redhat.com> References: <4AE7460D.7050807@us.ibm.com> <4AE761D9.7040401@us.ibm.com> <4AE769A3.9080205@codemonkey.ws> <4AE7E4D6.1000008@redhat.com> <20091028083429.GS29477@redhat.com> <4AE80716.3040102@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AE80716.3040102@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Beth Kon , qemu-devel On Wed, Oct 28, 2009 at 10:55:50AM +0200, Avi Kivity wrote: > On 10/28/2009 10:34 AM, Gleb Natapov wrote: > > > >>It shouldn't kill networking though. If a guest has two nics > >>connected to the same host bridge (a reasonable configuration), and > >>then connects these two nics through its own bridge, it creates the > >>same sort of loop. If that kills networking, we have a > >>guest-initiated DoS (not that the userspace-initiated DoS was much > >>better). > >> > >That's what STP is for. > > > > The guest need not respect it. The host must survive network loopbacks. > I am not sure how STP handles situation when one bridge doesn't support STP. If it disables one of the ports in such situation the setup will work. If it does not then rate limiting traffic is the only solution I see. -- Gleb.