From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J8tif-0002KS-VI for qemu-devel@nongnu.org; Sun, 30 Dec 2007 03:40:30 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J8tib-0002K6-9r for qemu-devel@nongnu.org; Sun, 30 Dec 2007 03:40:29 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J8tib-0002Js-3s for qemu-devel@nongnu.org; Sun, 30 Dec 2007 03:40:25 -0500 Received: from an-out-0708.google.com ([209.85.132.243]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J8tib-0004hT-6U for qemu-devel@nongnu.org; Sun, 30 Dec 2007 03:40:25 -0500 Received: by an-out-0708.google.com with SMTP id b38so985552ana.130 for ; Sun, 30 Dec 2007 00:40:23 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed From: Ryan W Smith Date: Sun, 30 Dec 2007 02:40:16 -0600 Subject: [Qemu-devel] qemu networking help Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I'm currently working on a project where we're using qemu to trace information flow through the operating system. One of the things that we'd like to do is trace network data as it flows through the operating system. I've been reading through the code, and I've gotten a bit lost. I gather that slirp is where data comes and goes from the host operating system, but I'm looking for the section of code that sends and receives data from the guest operating system. I read through the network device code (ne2000.c), and my guess is that the inb and outb functions are used to transfer data to the guest, but I'm not quite certain how that is done. Is there anything that anyone can point me to that would explain the process of getting data from the networking device to the guest operating system? Also, is there anything that explains the ne2k networking device a little more, and could explain what all the registers are and how to use them? Thanks in advance for any help you may offer. -Ryan