From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DH2M1-0007f7-4g for qemu-devel@nongnu.org; Thu, 31 Mar 2005 11:17:09 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DH2Lz-0007ch-BC for qemu-devel@nongnu.org; Thu, 31 Mar 2005 11:17:08 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DH26i-0003dU-DN for qemu-devel@nongnu.org; Thu, 31 Mar 2005 11:01:20 -0500 Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1DH1Uq-0007JF-Rn for qemu-devel@nongnu.org; Thu, 31 Mar 2005 10:22:13 -0500 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1DH1TH-0006Z3-90 for qemu-devel@nongnu.org; Thu, 31 Mar 2005 17:20:35 +0200 Received: from aaubervilliers-152-1-11-203.w82-121.abo.wanadoo.fr ([82.121.73.203]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Mar 2005 17:20:35 +0200 Received: from mirak.spam by aaubervilliers-152-1-11-203.w82-121.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Mar 2005 17:20:35 +0200 From: mirak Date: Thu, 31 Mar 2005 17:09:07 +0200 Message-ID: References: <200503311048.37371.mailinglists@futureware.at> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit In-Reply-To: Sender: news Subject: [Qemu-devel] Re: qemu ELF Loader Kernel integration 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 Valtteri Rahkonen wrote: > On Thu, 31 Mar 2005, PhilippGühring wrote: > >> Hi, >> >> Is it possible to integrate qemu(-ppc) into the Linux kernel, so that >> when a >> program tries to start a Linux-ELF-ppc executable, that qemu is being >> used to >> start it normally? > > > Yes, see binfmt_misc (kernel support for misc binaries). > >> It would be useful for embedded systems development for >> cross-compilation: >> The resulting binaries could be tried natively on the development system. >> If I would do it manually, I could start >> qemu-ppc binary >> But in some enviroments, the binary is started automatically by a >> third-party >> product, therefore being able to launch the binary directly would be >> helpful. > > > If you have a binfmt_misc compiled to your kernel and you have > registered qemu as a ppc interpreter then qemu will be started > automatically when executing the ppc binaries. You will need to register > qemu as your interprer in proc interface > (/proc/sys/fs/binfmt_misc/register). Would this work for for exemple the flash player plugin or is it only for executables ? I am interested in doing that the other way around, for i386 code on linux ppc.