From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MyL15-0002td-Ad for qemu-devel@nongnu.org; Thu, 15 Oct 2009 03:44:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MyL0z-0002sx-Uw for qemu-devel@nongnu.org; Thu, 15 Oct 2009 03:44:55 -0400 Received: from [199.232.76.173] (port=40458 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyL0z-0002su-Nt for qemu-devel@nongnu.org; Thu, 15 Oct 2009 03:44:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38112) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MyL0y-0003iG-SS for qemu-devel@nongnu.org; Thu, 15 Oct 2009 03:44:49 -0400 Date: Thu, 15 Oct 2009 09:44:42 +0200 From: Gleb Natapov Subject: Re: [Qemu-devel] Re: [PATCH-updated] qemu/net: add raw backend Message-ID: <20091015074442.GD30889@redhat.com> References: <20091014143415.GA29937@redhat.com> <4AD5E449.9070301@codemonkey.ws> <20091014152451.GA30179@redhat.com> <20091014153300.GA30889@redhat.com> <4AD6CF5E.4050109@Voltaire.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AD6CF5E.4050109@Voltaire.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Or Gerlitz Cc: Arnd Bergmann , qemu-devel@nongnu.org, "Michael S. Tsirkin" On Thu, Oct 15, 2009 at 09:29:34AM +0200, Or Gerlitz wrote: > Gleb Natapov wrote: > > tap need IP assigning. > > Hi Gleb, please correct me if I'm wrong, but the way we use tap here is attach it to a bridge from the one hand, and have Qemu write/read into/from it Ethernet frames from the other hand. This means that even the MAC address of tap isn't used, surely not an IP address. > Yes, you are right. I don't use tap usually so I don't remember. What I really mean is that guest needs IP assigning, so this means I need external DHCP setup. Slirp has (almost) everything you ever need from networking and with zero config: dhcp address assigning, NATing your traffic and as a bonus no need to run as root. Hard to beat that if you don't need performance. Raw requires root and external dhcp so it lose two point to slirp and it doesn't win any for my use case. But we have a lot of crap^W features in qemu anyway so don't see why not add this too. -- Gleb.