qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Get virtual memory value


From: Alexander
Subject: Re: [Qemu-devel] Get virtual memory value
Date: Tue, 05 May 2009 09:55:44 +0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2

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?

reply via email to

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