Re: [Qemu-devel] 4G address space remapping on 64-bit host

2007-07-03 Thread Blue Swirl
On 6/29/07, Fabrice Bellard <[EMAIL PROTECTED]> 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 eq

Re: [Qemu-devel] 4G address space remapping on 64-bit host

2007-06-29 Thread 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 >

Re: [Qemu-devel] 4G address space remapping on 64-bit host

2007-06-29 Thread Fabrice Bellard
Blue Swirl wrote: On 6/29/07, Fabrice Bellard <[EMAIL PROTECTED]> wrote: In fact, running in 64 bit is not necessary : It is simpler and more efficient to use kqemu (or KVM) to handle the address space remapping. The trick is to run the translator in the upper part or lower part of the 32 bit ad

Re: [Qemu-devel] 4G address space remapping on 64-bit host

2007-06-29 Thread Gwenole Beauchesne
Hi, 2007/6/29, Paul Brook <[EMAIL PROTECTED]>: 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 tha

Re: [Qemu-devel] 4G address space remapping on 64-bit host

2007-06-29 Thread Blue Swirl
On 6/29/07, Fabrice Bellard <[EMAIL PROTECTED]> wrote: In fact, running in 64 bit is not necessary : It is simpler and more efficient to use kqemu (or KVM) to handle the address space remapping. The trick is to run the translator in the upper part or lower part of the 32 bit address space and to

Re: [Qemu-devel] 4G address space remapping on 64-bit host

2007-06-29 Thread Paul Brook
> I had an idea of mapping the full 32-bit target virtual address space > to a 4GB area on 64-bit hosts. Then the loads and stores to normal RAM > (except page tables, code_mem_write etc) could be made much faster, > falling back to softmmu for other pages. The idea has come up before, > for exampl

Re: [Qemu-devel] 4G address space remapping on 64-bit host

2007-06-29 Thread Fabrice Bellard
Hi, In fact, running in 64 bit is not necessary : It is simpler and more efficient to use kqemu (or KVM) to handle the address space remapping. The trick is to run the translator in the upper part or lower part of the 32 bit address space and to protect it with segments. Even in 64 bit mode,

[Qemu-devel] 4G address space remapping on 64-bit host

2007-06-29 Thread Blue Swirl
Hi, I had an idea of mapping the full 32-bit target virtual address space to a 4GB area on 64-bit hosts. Then the loads and stores to normal RAM (except page tables, code_mem_write etc) could be made much faster, falling back to softmmu for other pages. The idea has come up before, for example in