On 23 November 2014 at 13:18, Kaiyuan <kaiyu...@tju.edu.cn> wrote:
> Thanks for your explanation about guest physical/virtual
> address and host physical/virtual address, and I think I
> asked a wrong question. Is there a function that translates
> guest Physical address to host Virtual address so that I
> can access guest space by a host pointer?

You can use cpu_physical_memory_map() and _unmap()
for this kind of thing. (Make sure you unmap afterwards.)

-- PMM

Reply via email to