From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HqGxj-000608-2r for qemu-devel@nongnu.org; Mon, 21 May 2007 19:06:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HqGxh-0005z4-Ju for qemu-devel@nongnu.org; Mon, 21 May 2007 19:06:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqGxh-0005yz-FN for qemu-devel@nongnu.org; Mon, 21 May 2007 19:06:45 -0400 Received: from cpe-24-31-250-242.kc.res.rr.com ([24.31.250.242] helo=hachi.dashjr.org) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HqGxh-0003eD-1V for qemu-devel@nongnu.org; Mon, 21 May 2007 19:06:45 -0400 Received: from 8.29.168.192.in-addr.arpa (adsl-76-194-177-181.dsl.ksc2mo.sbcglobal.net [76.194.177.181]) (Authenticated sender: luke-jr) by hachi.dashjr.org (Postfix) with ESMTP id 4DA7096002D for ; Mon, 21 May 2007 23:06:37 +0000 (UTC) From: Luke -Jr Subject: Re: [Qemu-devel] Using native libraries Date: Mon, 21 May 2007 18:06:37 -0500 References: <200705211511.01631.luke@dashjr.org> <46520B81.1000901@zytor.com> In-Reply-To: <46520B81.1000901@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705211806.37806.luke@dashjr.org> 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 On Monday 21 May 2007 16:13, H. Peter Anvin wrote: > The easiest way to do that is by having an "RPC stub library" in the > emulated environment which contains nothing but trap instructions -- > like system calls -- that can be intercepted on the other side. At that > point, one has to do translation of data types and pointers (called > "thunking") before invoking the native library. Generating such > "thunks" is usually done automatically, but it is still a fairly major > effort. But can it be done at the JIT stage?