From: Laurent Desnogues <laurent.desnogues@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Monitor Memory Accesses
Date: Wed, 18 Feb 2009 16:52:47 +0100 [thread overview]
Message-ID: <761ea48b0902180752p2e665a07vbb922fb6621a7173@mail.gmail.com> (raw)
In-Reply-To: <499C2BEF.6010107@gmail.com>
On Wed, Feb 18, 2009 at 4:40 PM, Andrea Pellegrini
<andrea.pellegrini@gmail.com> wrote:
> In the file linux-user/mmap.c, which is the difference between the two
> following lines? Does the first one provide the virtual address while the
> second one is already translated in the real address?
>
> p = mmap(g2h(mmap_start),
> host_len, prot, flags | MAP_FIXED, fd, host_offset);
>
> p = mmap(real_start ? g2h(real_start) : NULL,
> host_len, prot, flags, fd, host_offset);
>
> I'm just starting to work on tracking the load/store. :-)
I don't think you have to care about that. You want to print the
addresses your guest accesses (which are virtual since you're
running linux user mode, IIUC).
As I don't know anything about 0.9.1, all I can recommend is
again to look at what Vincent did; in particular this:
http://www.csl.cornell.edu/~vince/projects/qemu-trace/qemu-mips-dinero.patch
Laurent
next prev parent reply other threads:[~2009-02-18 15:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-18 12:48 [Qemu-devel] Monitor Memory Accesses Andrea Pellegrini
2009-02-18 13:00 ` Laurent Desnogues
2009-02-18 13:17 ` Andrea Pellegrini
2009-02-18 13:26 ` Laurent Desnogues
2009-02-18 15:40 ` Andrea Pellegrini
2009-02-18 15:52 ` Laurent Desnogues [this message]
2009-02-18 16:14 ` Vince Weaver
2009-02-18 16:36 ` Andrea Pellegrini
2009-02-18 18:30 ` Vince Weaver
2009-02-18 19:04 ` Andrea Pellegrini
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=761ea48b0902180752p2e665a07vbb922fb6621a7173@mail.gmail.com \
--to=laurent.desnogues@gmail.com \
--cc=qemu-devel@nongnu.org \
/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).