From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M4ahu-0000uI-K8 for qemu-devel@nongnu.org; Thu, 14 May 2009 09:10:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M4ahs-0000sn-E1 for qemu-devel@nongnu.org; Thu, 14 May 2009 09:10:41 -0400 Received: from [199.232.76.173] (port=35254 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4ahs-0000sk-A6 for qemu-devel@nongnu.org; Thu, 14 May 2009 09:10:40 -0400 Received: from smtp102.mail.ukl.yahoo.com ([77.238.184.34]:40803) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1M4ahr-0005sY-O1 for qemu-devel@nongnu.org; Thu, 14 May 2009 09:10:40 -0400 Message-ID: <4A0C184D.3030307@yahoo.it> Date: Thu, 14 May 2009 15:10:37 +0200 From: Heli 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> In-Reply-To: <200905141119.01914.paul@codesourcery.com> 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: qemu-devel@nongnu.org Paul Brook wrote: > On Thursday 14 May 2009, helicoterus-elih@yahoo.it wrote: > > > Which mode of Qemu operations do you refer to? if you refer to full > > > MMU emulation (no KVM or kqemu involved then), then intercepting > > > syscall is basically intercepting interrupt 80 hex or SYSENTER/SYSCALL > > > into host user mode instruction during code translation. > > > > Ok, I refer to full emulation. > > When QEMU intercepts a system call what does it do? What type of > > translation or modification does it perform? > > > It does exactly the same as real hardware. > > > Paul > > 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? Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com