From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M4dyl-00058q-Gj for qemu-devel@nongnu.org; Thu, 14 May 2009 12:40:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M4dyh-00054n-Th for qemu-devel@nongnu.org; Thu, 14 May 2009 12:40:19 -0400 Received: from [199.232.76.173] (port=60740 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4dyh-00054g-NL for qemu-devel@nongnu.org; Thu, 14 May 2009 12:40:15 -0400 Received: from mx2.redhat.com ([66.187.237.31]:54925) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M4dyh-0005YC-56 for qemu-devel@nongnu.org; Thu, 14 May 2009 12:40:15 -0400 Message-ID: <4A0C496B.3080601@redhat.com> Date: Thu, 14 May 2009 19:40:11 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] How does a system call work on QEMU? References: <877930.94637.qm@web28603.mail.ukl.yahoo.com> <200905141119.01914.paul@codesourcery.com> <4A0C184D.3030307@yahoo.it> In-Reply-To: <4A0C184D.3030307@yahoo.it> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Heli Cc: qemu-devel@nongnu.org Heli wrote: > Does QEMU generate a system call that goes to libc library and the to > the kernel? > Then the kernel run it on hardware, kernel replies to libc and libc > notifies to QEMU. QEMU replies to guest O.S, is it true? No. Look at target-i386/translate.c, case 0x105 for syscall emulation. Eventually it ends up calling helper_syscall(). -- error compiling committee.c: too many arguments to function