From: Christoffer Dall <cdall@vmware.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Host virtual to target physical memory addresses
Date: Fri, 16 Oct 2009 00:25:39 -0400 [thread overview]
Message-ID: <4AD7F5C3.5060301@vmware.com> (raw)
I am trying to find out how emulated physical addresses relate to host
allocated virtual addresses for ARM system emulation.
Specifically, given a host virtual address allocated by QEMU for some
memory region, I would like to find the corresponding guest (target)
physical address.
I have gone through the code for the integrator board and for the main
memory I can see that both qemu_ram_alloc and
cpu_register_physical_memory are called. I understand that the first
deals with actually allocating the virtual addresses needed for the
memory area and the second registers the memory with the virtual CPU.
During cpu_register_physical_memory, eventually phys_page_find_alloc is
called, and I can see that it is related to the software mmu code in
target-arm/helper.c, but I am getting somewhat lost in the concepts
RAMBlock, ram_offset and PhysPageDesc.
Is there some documentation on this that I can study or can anyone give
me a quick run-down on the concepts?
Any help will be greatly appreciated.
Thank you.
Best regards,
Christoffer Dall
reply other threads:[~2009-10-16 4:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4AD7F5C3.5060301@vmware.com \
--to=cdall@vmware.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).