From: "浩倫 魏" <goberwei@yahoo.com.tw>
To: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: [Qemu-devel] How QEMU maintains the translation from guest virtual address to guest physical address?
Date: Wed, 6 May 2015 14:22:34 +0000 (UTC) [thread overview]
Message-ID: <324879053.469283.1430922154067.JavaMail.yahoo@mail.yahoo.com> (raw)
[-- 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 --]
next reply other threads:[~2015-05-06 14:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-06 14:22 浩倫 魏 [this message]
2015-05-06 17:26 ` [Qemu-devel] How QEMU maintains the translation from guest virtual address to guest physical address? Peter Maydell
2015-05-06 18:41 ` 浩倫 魏
2015-05-06 18:54 ` Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=324879053.469283.1430922154067.JavaMail.yahoo@mail.yahoo.com \
--to=goberwei@yahoo.com.tw \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).