[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Simulate different network card vendors
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] Simulate different network card vendors |
Date: |
Mon, 20 Jan 2014 17:22:29 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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.