From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: network questions on Qemu Date: Tue, 07 Apr 2009 15:11:39 +0300 Message-ID: <49DB42FB.4080006@redhat.com> References: <200904071940147947893@cse.buaa.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Cc: "kvm@vger.kernel.org" To: zshan Return-path: Received: from mx2.redhat.com ([66.187.237.31]:33521 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751714AbZDGMMI (ORCPT ); Tue, 7 Apr 2009 08:12:08 -0400 In-Reply-To: <200904071940147947893@cse.buaa.edu.cn> Sender: kvm-owner@vger.kernel.org List-ID: zshan wrote: > hi all: > I am now recently using KVM which use the Qemu to perform network I/O > activities, I use the tun/tap bridging to let the guest os connect to > the Internet , and the detailed network topology is as follows: > Wow, ascii art in an image. > And I am so curious about the interaction between the tap and qemu, > how can packet been passed from tap to qemu, and what is the ingress > path in detail ? Look in qemu/net.c, qemu uses read() and write() to receive and send packets through tap. -- error compiling committee.c: too many arguments to function