On Sat, 13 Apr 2019 at 10:47, 宋延杰 <icarus19971...@gmail.com> wrote: > I have started a project which requires the host to continuously write to > VM's memory. VM reads its memory and performs some operations. > I've found in this thread > <https://lists.gnu.org/archive/html/qemu-devel/2014-11/msg03166.html> that > I can use QEMU's "cpu_physical_memory_" functions. And I have found their > definitions in "include/exec/cpu-common.h" in the source code of QEMU.
For QEMU functions which access guest memory, see docs/devel/loads-stores.rst. cpu_physical_memory_* are generally not what you want to use in current QEMU, though some legacy code does. thanks -- PMM