* [Qemu-devel] Get virtual memory value
@ 2009-04-28 6:26 Alexander Basov
2009-04-28 12:39 ` Richard W.M. Jones
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Basov @ 2009-04-28 6:26 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 154 bytes --]
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.
Thanks.
[-- Attachment #2: Type: text/html, Size: 179 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Get virtual memory value
2009-04-28 6:26 [Qemu-devel] Get virtual memory value Alexander Basov
@ 2009-04-28 12:39 ` Richard W.M. Jones
2009-05-05 5:55 ` Alexander
0 siblings, 1 reply; 3+ messages in thread
From: Richard W.M. Jones @ 2009-04-28 12:39 UTC (permalink / raw)
To: Alexander Basov; +Cc: qemu-devel
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.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Get virtual memory value
2009-04-28 12:39 ` Richard W.M. Jones
@ 2009-05-05 5:55 ` Alexander
0 siblings, 0 replies; 3+ messages in thread
From: Alexander @ 2009-05-05 5:55 UTC (permalink / raw)
To: Richard W.M. Jones; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 902 bytes --]
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?
[-- Attachment #2: Type: text/html, Size: 1525 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-05-05 5:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-28 6:26 [Qemu-devel] Get virtual memory value Alexander Basov
2009-04-28 12:39 ` Richard W.M. Jones
2009-05-05 5:55 ` Alexander
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.