qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] How to access guest memory from qemu device internal


From: Peter Maydell
Subject: Re: [Qemu-devel] How to access guest memory from qemu device internal
Date: Sun, 23 Nov 2014 16:01:23 +0000

On 23 November 2014 at 13:18, Kaiyuan <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]