From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M4Y2C-0004gK-NZ for qemu-devel@nongnu.org; Thu, 14 May 2009 06:19:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M4Y27-0004g0-9I for qemu-devel@nongnu.org; Thu, 14 May 2009 06:19:27 -0400 Received: from [199.232.76.173] (port=57592 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4Y27-0004fx-0y for qemu-devel@nongnu.org; Thu, 14 May 2009 06:19:23 -0400 Received: from mx20.gnu.org ([199.232.41.8]:58602) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M4Y26-00029v-PZ for qemu-devel@nongnu.org; Thu, 14 May 2009 06:19:22 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M4Y25-0000lL-LT for qemu-devel@nongnu.org; Thu, 14 May 2009 06:19:21 -0400 From: Paul Brook Subject: Re: [Qemu-devel] How does a system call work on QEMU? Date: Thu, 14 May 2009 11:19:01 +0100 References: <877930.94637.qm@web28603.mail.ukl.yahoo.com> In-Reply-To: <877930.94637.qm@web28603.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="Boundary-00=_VA/CKWADVqZXFMF" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905141119.01914.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, helicoterus-elih@yahoo.it --Boundary-00=_VA/CKWADVqZXFMF Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 --Boundary-00=_VA/CKWADVqZXFMF Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit 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


--Boundary-00=_VA/CKWADVqZXFMF--