From: amateur <tianlei.zhao@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] MMU and Physical<->Virtual address conversion
Date: Thu, 21 Jun 2007 20:22:07 +0800 [thread overview]
Message-ID: <20070621122206.GA7612@163.com> (raw)
In-Reply-To: <ccc987170706210010n16a8c88dg25e2755c5c68c660@mail.gmail.com>
On Thu, Jun 21, 2007 at 12:10:38AM -0700, Shane Hummer-Smith wrote:
> Hello,
>
> I am trying to experiment with the memory management unit in QEMU, but I
> don't seem to be able to wrap my head around the source code. Can somebody
> help me figure out how the physical to virtual address translation and
> vice-versa is implemented in QEMU? Any pointer would be appreciated. Thanks
> much!
-------------------------
The address translation things in full system mode is handled by the
so called SoftMMU, which translate gVA->hEA. gEA->gVA is known as
address calculation and handled in insn translation. gVA->gPA is
handled by SoftMMU using Guest Page Table, gPA->hEA is handled by
SoftMMU using two-level-table of PhyPageDesc structures. There is
again TLB which translate gVA->hEA directly.
SoftMMU code is mainly in softmmu_header.h, softmmu_template.h, things
related to PhyPageDesc...
--
^[[32m《东郊》^[[m
^[[33m作者:韦应物^[[m
吏舍局终年,出郊旷清曙。
杨柳散和风,青山澹吾虑。
依丛适自憩,缘涧还复去。
微雨霭芳原,春鸠鸣何处。
乐幽心屡止,遵事迹犹遽。
终罢斯结庐,慕陶真可庶。
prev parent reply other threads:[~2007-06-21 12:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-21 7:10 [Qemu-devel] MMU and Physical<->Virtual address conversion Shane Hummer-Smith
2007-06-21 12:22 ` amateur [this message]
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=20070621122206.GA7612@163.com \
--to=tianlei.zhao@gmail.com \
--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).