Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I5d82-00038m-50 for qemu-devel@nongnu.org; Tue, 03 Jul 2007 03:48:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I5d80-00038T-1D for qemu-devel@nongnu.org; Tue, 03 Jul 2007 03:48:53 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5d7z-00038O-SB for qemu-devel@nongnu.org; Tue, 03 Jul 2007 03:48:51 -0400 Received: from ug-out-1314.google.com ([66.249.92.175]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I5d7z-0000aX-81 for qemu-devel@nongnu.org; Tue, 03 Jul 2007 03:48:51 -0400 Received: by ug-out-1314.google.com with SMTP id m2so39823uge for ; Tue, 03 Jul 2007 00:48:49 -0700 (PDT) Message-ID: Date: Tue, 3 Jul 2007 10:48:49 +0300 From: "Blue Swirl" Subject: Re: [Qemu-devel] 4G address space remapping on 64-bit host In-Reply-To: <46857024.3050706@bellard.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4684DBBD.2090907@bellard.org> <46857024.3050706@bellard.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 6/29/07, Fabrice Bellard wrote: > The kqemu part could be quite simple. A new execution mode could be > added so that: > > - shadow page table faults generate a specific signal in the user guest > code. > - A kqemu "syscall" callable from the user guest code could be used to > do the equivalent of tlb_set_page(), tlb_flush_page() and tlb_flush(). > > Note that I don't think it is worth using Xen for that. Modifying kqemu > (or even KVM) should be more flexible. With kqemu it could also work on > FreeBSD, Solaris, Windows and Linux. > > The more complicated part is to split QEMU in two parts : one part > containing the translator (and maybe some devices) would be executed as > guest user code in kqemu. The other part would be executed as a regular > process to handle what is left (graphic, disk access, etc). The first step could be execution of TB code from kqemu, memory accesses could bypass the TLB. > If TB where MMIO accesses are done are compiled specifically, I think it > can be quite efficient. > > For the specific sparc32 case, I think that a better register window > handling and a faster soft mmu code (using 4MB TLBs as it was proposed > in a patch long ago) should already give an important speed boost (say a > factor 1.5 to 2). The kqemu optimisation should give at least as much > performance gain, depending on the ratio of instructions which do a > memory access and on the number of TLB faults. About register windows, it's strange that enabling REG_REGWPTR mysteriously does not work.