[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] guest physical address equal host virtual address ?

From: Lluís
Subject: Re: [Qemu-devel] guest physical address equal host virtual address ?
Date: Tue, 26 Oct 2010 15:24:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

tung hoang writes:

> But from qemu-0.10.0 Qemu uses a softmmu model to speed up this process. 
> Its main idea is storing the offset of guest virtual address to host virtual
> address in a TLB table. 

As I remember it, it's on the lines of:

tlb_entry = env->tlb_table[mem_index][hash(guest_virtual_address)];
if (tlb_entry.<access_type> == guest_virtual_address) {
    host_virtual_address = tlb_entry.addend
} else {
    call the slow path through __ld routines


 "And it's much the same thing with knowledge, for whenever you learn
 something new, the whole world becomes that much richer."
 -- The Princess of Pure Reason, as told by Norton Juster in The Phantom

reply via email to

[Prev in Thread] Current Thread [Next in Thread]