qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] How QEMU maintains the translation from guest virtual address to guest physical address?
@ 2015-05-06 14:22 浩倫 魏
  2015-05-06 17:26 ` Peter Maydell
  0 siblings, 1 reply; 4+ messages in thread
From: 浩倫 魏 @ 2015-05-06 14:22 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

[-- Attachment #1: Type: text/plain, Size: 899 bytes --]

Hi, all:
I've been trying to understand the process of address translation inside QEMU, but I got stuck in GVA->GPA.I've known that QEMU uses a two level description table 'PhysPageDesc' to maintain the translation between GPA & HVA(host virtual address), but I couldn't find out where QEMU translates GVA to GPA to go to that table to find HVA when a TLB missed occured. I've traced the internal codes and there are something may be able to solve my problems but I can't figure it out, could anyone help me?There is a function get_level1_table_address() called by get_phys_addr() in target-arm/helper.c, and it seems like start translating the GVA to GPA. But I don't understand the env->cp15.c2_base_mask variable which claimed to be the MMU translation table base selection mask means. Where is the description of MMU translation table?
Any suggestions would be helpful to me.Thanks in advance. 

[-- Attachment #2: Type: text/html, Size: 2023 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-05-06 18:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-06 14:22 [Qemu-devel] How QEMU maintains the translation from guest virtual address to guest physical address? 浩倫 魏
2015-05-06 17:26 ` Peter Maydell
2015-05-06 18:41   ` 浩倫 魏
2015-05-06 18:54     ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).