From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DFMWv-0003RL-0P for qemu-devel@nongnu.org; Sat, 26 Mar 2005 20:25:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DFMWh-0003L3-B7 for qemu-devel@nongnu.org; Sat, 26 Mar 2005 20:25:19 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DFMWf-0003IZ-3E for qemu-devel@nongnu.org; Sat, 26 Mar 2005 20:25:13 -0500 Received: from [128.8.10.162] (helo=po0.wam.umd.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DFM58-0005UX-Tq for qemu-devel@nongnu.org; Sat, 26 Mar 2005 19:56:47 -0500 Received: from jbrown.mylinuxbox.org (jma-box.student.umd.edu [129.2.237.180]) by po0.wam.umd.edu (8.12.10/8.12.10) with ESMTP id j2R0ujHG000874 for ; Sat, 26 Mar 2005 19:56:45 -0500 (EST) Date: Sat, 26 Mar 2005 19:56:44 -0500 From: "Jim C. Brown" Subject: Re: [Qemu-devel] Confused Message-ID: <20050327005644.GA3001@jbrown.mylinuxbox.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Fri, Mar 25, 2005 at 10:52:11PM -0800, Jamie Aczel wrote: > Hello, > > I'm attempting to sort out the discrepancies between a "WINE for PPC" > guide posted on some mailing lists last year > (http://lists.terrasoftsolutions.com/pipermail/yellowdog-general/2004- > June/014468.html) which makes references to the "qemu-i386" binary; > > The reality, which is that none of the bundled versions of QEMU for PPC > I've found, nor a self-compile of QEMU 0.6.1, include this binary; > qemu-i386 was still included in 0.6.0 - I haven't checked more recent versions but I don't remember it being removed from the source. Normally qemu is used to emulate an entire system: cpu, ram, hard disk, etc. qemu-i386 provides translations for individual linux binaries - also provided a translation layer so the binary could make syscalls to the native kernel. You need to do a './configure --target-list=i386' in order to enable it. > and another mailing list post (URL lost, unfortunately) that explained > that the "qemu-i386" binary is the 'fast' version of the program for > x86 virtualization on x86 hosts, with no instruction set translation, > and should not exist or run on PPC systems. This is wrong. The person was either thinking about qemu-fast (now defunct) or the qemu accelerator (also known as kqemu). qemu-i386 is perfect for running x86 binaries on PPC (such as Wine) via translation. > > If that's correct, how did the writer of the first post get it to work? > Is there any way to run Linux/x86 programs (specifically WINE) in > recent QEMU versions without installing an entire host system? I'm > actually using OS X, so if the platforms are too different for seamless > emulation across them, this searching may all be useless... > The catch is that qemu-i386 will only work when you are trying to run Linux x86 binaries on a non-x86 Linux host. It works by translating between different kernel archs. To get it to work on OSX, you'd have to do what (last I heard - this may no longer be correct) Darwine is doing: provide a translation layer between qemu-i386 and OSX, that converts Linux syscalls into OSX calls. -- Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection.