|
From: | rajan pathak |
Subject: | Re: [Qemu-devel] Simulate different network card vendors |
Date: | Wed, 22 Jan 2014 18:30:42 +0530 |
On Sat, Jan 18, 2014 at 09:19:43AM -0800, rajan pathak wrote:I'm not sure what you mean. Do you have source code for QEMU emulation
> 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?
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.
QEMU uses mechanisms to send raw packets from userspace, like the
> 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?
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.
[Prev in Thread] | Current Thread | [Next in Thread] |