Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gut1u-0003uQ-NV for qemu-devel@nongnu.org; Thu, 14 Dec 2006 11:01:54 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gut1t-0003su-WE for qemu-devel@nongnu.org; Thu, 14 Dec 2006 11:01:54 -0500 Received: from [69.69.215.43] (helo=mail.premiumoperatingsystems.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gut1t-0004R0-CQ for qemu-devel@nongnu.org; Thu, 14 Dec 2006 11:01:53 -0500 Received: from [192.168.2.30] (nc-71-48-24-78.dhcp.embarqhsd.net [71.48.24.78]) (authenticated bits=0) by mail.premiumoperatingsystems.net (8.12.11/8.12.11) with ESMTP id kBEG1jrg010734 for ; Thu, 14 Dec 2006 11:01:46 -0500 Message-ID: <4581836C.7080709@tidetamerboatlifts.com> Date: Thu, 14 Dec 2006 12:01:32 -0500 From: Joseph Miller MIME-Version: 1.0 Subject: Re: [Qemu-devel] using mmap? References: <10541fa50612130009s798a1587n4a3d2b8b51baa334@mail.gmail.com> <56d259a00612130526u214987e6kfbe926d8bba018f0@mail.gmail.com> <9cfca86c3aa677137448f7a0a85e3ccb@io.com> <45802498.6020808@tidetamerboatlifts.com> <799dfe3574a1e50e5a9a0da483b58db6@io.com> In-Reply-To: <799dfe3574a1e50e5a9a0da483b58db6@io.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Tim Olson wrote: > > On Dec 13, 2006, at 10:04 AM, Joseph Miller wrote: > >> >> Can someone elaborate on this a little? What is the difference >> between the SOFTMMU and the mmap()? Should I be using the >> --enable-system or the --disable-system for win32 guest on i386 >> debian host? Can someone give a little more insight on this >> technicality? > > For full system emulation, qemu needs to support the emulated > processor's ability to perform virtual->physical address translation > for every memory reference (including data loads/stores and > non-pc-relative branches). Using the SOFTMMU method, this is done at > basic-block translation time by inlining a software TLB lookup routine > for each memory reference. This expands a simple target load > instruction into a sequence of ~20 host processor instructions (for > x86 target, ppc host I see about 25 instructions for TLB lookup). > > The other way to handle this would be to use the host's MMU to do the > translation directly, via an mmap() system call which sets up the > translation. Then the translated basic block would contain memory > references using the target system's virtual address values, and the > translation would occur in the host's hardware MMU during execution > (fast), rather than having to execute a software TLB lookup. However, > there are a number of restrictions to using mmap() translation (host > and target address spaces cannot overlap, etc.) It appears that this > feature has been removed from current versions of qemu, so the only > way to do full system emulation is via the SOFTMMU method. > > -- tim > > > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel Does anyone know the reason for the removal of the mmap()? I have used a benchmarking tool (I think it was 3D Mark05 or 3D Mark06) and the memory access in the guest WinXP was slooooooow. Does anyone have any insight on making the hardware MMU function for linux-x86 host to WinXP 32-bit guest, even partially? Wouldn't this be a *significant* performance enhancement for this setup which I'm sure is a common one? Maybe this can be implemented for regular processes on the guest and only use the softmmu for the kernel? Would someone point me in the right direction for technical information? I have had to switch to vmware free player until Qemu+KQEMU reaches a point of similar performance, but I would really rather see Qemu advance further. -Joseph