From: Alexander <coopht@gmail.com>
To: "Richard W.M. Jones" <rjones@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Get virtual memory value
Date: Tue, 05 May 2009 09:55:44 +0400 [thread overview]
Message-ID: <49FFD4E0.5080104@gmail.com> (raw)
In-Reply-To: <20090428123909.GA5606@amd.home.annexia.org>
[-- 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 --]
prev parent reply other threads:[~2009-05-05 5:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49FFD4E0.5080104@gmail.com \
--to=coopht@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=rjones@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).