From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MwB9u-0006GH-Hq for qemu-devel@nongnu.org; Fri, 09 Oct 2009 04:49:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MwB9p-00068x-OO for qemu-devel@nongnu.org; Fri, 09 Oct 2009 04:49:05 -0400 Received: from [199.232.76.173] (port=46604 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwB9o-00068P-Ow for qemu-devel@nongnu.org; Fri, 09 Oct 2009 04:49:00 -0400 Received: from miranda.se.axis.com ([193.13.178.8]:35388) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MwB9n-0004P7-VN for qemu-devel@nongnu.org; Fri, 09 Oct 2009 04:49:00 -0400 Date: Fri, 9 Oct 2009 10:41:58 +0200 From: "Edgar E. Iglesias" Subject: Re: [Qemu-devel] [PATCH 00/16] Add a -netdev option Message-ID: <20091009084158.GA5710@edde.se.axis.com> References: <1255028312-28180-1-git-send-email-markmc@redhat.com> <4ACE4B99.2010606@mail.berlios.de> <1255072175.2786.11.camel@blaa> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1255072175.2786.11.camel@blaa> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mark McLoughlin Cc: qemu-devel@nongnu.org On Fri, Oct 09, 2009 at 08:09:35AM +0100, Mark McLoughlin wrote: > Hi Stefan, > > On Thu, 2009-10-08 at 22:29 +0200, Stefan Weil wrote: > > > Hi Mark, > > > > today, qemu's ethernet devices are a fixed combination of > > MAC (Media Access Controller) and PHY (Physical Layer). > > > > Real hardware is different: the controllers provide a MAC, > > and many provide a PHY, too, but all controllers allow > > one or even several external PHY(s). > > > > Most (or all?) controllers use the same standard interface > > to address their PHY (internal or external), something > > which is completely missing today in qemu. > > > > A better solution would use separate code for MAC and > > PHY, so the controllers could share common code for the > > PHY. > > > > Configuration of a different PHY should be possible, > > so users can run a system emulation of different > > MAC-PHY combinations. > > > > In addition to the PHY type, a PHY needs attributes > > (link speed and link status). > > > > Maybe you can address these requirements in your > > redesign. > > Doesn't that sound like something purely for the device model itself, as > opposed to the core packet handling code? Right, this kind of PHY emulation is purely for emulated control not for packet data paths. Cheers