Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I4K3R-0007Sv-3U for qemu-devel@nongnu.org; Fri, 29 Jun 2007 13:14:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I4K3P-0007SD-JE for qemu-devel@nongnu.org; Fri, 29 Jun 2007 13:14:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4K3P-0007S7-GT for qemu-devel@nongnu.org; Fri, 29 Jun 2007 13:14:43 -0400 Received: from wr-out-0506.google.com ([64.233.184.229]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I4K3P-0003n3-F1 for qemu-devel@nongnu.org; Fri, 29 Jun 2007 13:14:43 -0400 Received: by wr-out-0506.google.com with SMTP id i22so771339wra for ; Fri, 29 Jun 2007 10:14:42 -0700 (PDT) Message-ID: Date: Fri, 29 Jun 2007 19:14:41 +0200 From: "Gwenole Beauchesne" Subject: Re: [Qemu-devel] 4G address space remapping on 64-bit host In-Reply-To: <200706291400.40815.paul@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200706291400.40815.paul@codesourcery.com> 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 Hi, 2007/6/29, Paul Brook : > I'd expect the overhead of SIGSEGV+mmap to be prohibitive. I don't have > numbers to back this up, but experience with MIPS system emulation shows = that > TLB miss cost can have significant effect on overall performance. I'd say this can't be worse than on MacOS X where Mach exception handling is terribly slow. Typically 100 usec per fault caught+mprotect where Linux requires less than 5 usec to do the same. > Like Fabrice, I think this would be most useful in combination with some = sort > of hypervisor. Somewhere on my TODO list is porting qemu to run directly= as > a paravirtual Xen DomU. This means you can insert the guest pagetable wa= lk > directly into the host mmu fault handler, and do clever things with shado= w > pagetables. This would be great. As Fabrice mentioned, the tricky part would be to run the translator in the upper part or lower part of the 32-bit address space. Would fixing compilation with -pie help this (with some provisions for the dyngen ops) or do you see another means to achieve this? --=20 Gwenol=E9.