28.04.2009 16:39, Richard W.M. Jones пишет:
On Tue, Apr 28, 2009 at 10:26:52AM +0400, Alexander Basov wrote:
  
Hello.
I'm new in qemu internals, and I'd like to know, how can I get
a value, which is stored in virtual memory address, allocated by guest OS.
    

It's possible using the 'memsave' command in the console.

We expose this through libvirt:

http://libvirt.org/html/libvirt-libvirt.html#virDomainMemoryPeek

Rich.

  
It is not exactly what i need.
I have some virtual memory address inside qemu.
I need to get value, which is stored in this address.

I'm trying to do as follow
1. Get phys address of given virtual address into tmp_addr
    get_phys_addr (env, address, access_type, is_user, &tmp_addr, &tmp_prot);

2. read value of which is stored in physical address (tmp_addr)
  cpu_physical_memory_read (tmp_addr, &result, 1);

Is it correct way?