From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5iZH-0005iY-6f for qemu-devel@nongnu.org; Tue, 21 Jan 2014 16:09:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5iZ8-0001sc-Oo for qemu-devel@nongnu.org; Tue, 21 Jan 2014 16:09:07 -0500 Received: from mail-ea0-x22c.google.com ([2a00:1450:4013:c01::22c]:58057) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5iZ8-0001sX-H2 for qemu-devel@nongnu.org; Tue, 21 Jan 2014 16:08:58 -0500 Received: by mail-ea0-f172.google.com with SMTP id g15so3449559eak.31 for ; Tue, 21 Jan 2014 13:08:57 -0800 (PST) Date: Mon, 20 Jan 2014 17:22:29 +0100 From: Stefan Hajnoczi Message-ID: <20140120162229.GA3446@stefanha-thinkpad> References: <20140116062921.GB14680@stefanha-thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] Simulate different network card vendors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: rajan pathak Cc: qemu-devel@nongnu.org On Sat, Jan 18, 2014 at 09:19:43AM -0800, rajan pathak wrote: > I am looking forward to emulate single-chip Ethernet controller. > > I can find some of its source code online and it has two main part Ethernet > PHY (any 1GB SGMII compatible) > and Ethernet MAC . > > So ,DO I need to simply put the corresponding source files of PHY and MAC > in hw/net directory of QEMU? I'm not sure what you mean. Do you have source code for QEMU emulation of the network card? If you have some other source code like a driver for the card, or emulation for the card but not for QEMU, then a lot more work would be necessary to emulate the card in QEMU. > Also ,do I need to take care of underlying Ethernet controller(of my > machine where I am trying to do this) from > Broadcom in any way? QEMU uses mechanisms to send raw packets from userspace, like the tun/tap driver that many OSes have. Therefore the physical NIC doesn't matter, it's abstracted by the tun/tap interface that the host kernel provides.