qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: malc <av1474@comtv.ru>
To: Eliot Moss <moss@cs.umass.edu>
Cc: "Stefan Hajnoczi" <stefanha@gmail.com>, Lluís <xscript@gmx.net>,
	qemu-devel@nongnu.org, "Yufei Chen" <cyfdecyf@gmail.com>,
	"Eduardo Cruz" <eduardohmdacruz@gmail.com>,
	"Mulyadi Santosa" <mulyadi.santosa@gmail.com>
Subject: Re: [Qemu-devel] memory trace with qemu
Date: Mon, 26 Jul 2010 15:16:34 +0400 (MSD)	[thread overview]
Message-ID: <alpine.LNX.2.00.1007261515530.2555@linmac> (raw)
In-Reply-To: <4C4D6A1C.1020004@cs.umass.edu>

On Mon, 26 Jul 2010, Eliot Moss wrote:

> On 7/26/2010 6:20 AM, Llu?s wrote:
> > Eduardo Cruz writes:
> > 
> > > Thanks for your awnsers. Stean, after I find the right place to capture
> > > the
> > > reads and writes I'll definitely try your trace tool.
> > 
> > > Until now, this is what i found:
> > 
> > > I am using the x86-64 target, and I know that, for instance, lots of reads
> > > pass here:
> > 
> > > target-i386/translate.c   gen_op_ld_T1_A0()
> > 
> > Ok, I've seen at least 3 people working on this lately.
> > 
> > Some time ago I wrote a message proposing two sets of modifications for
> > qemu, in
> > order to allow the analysis of guest code (like feeding traces to an
> > architecture simulator).
> > 
> > What I proposed is based on two different functionalities:
> > 
> > 1) backdoor: a mechanism for the guest to communicate with qemu, such that
> >     tracing can be started, stopped, etc.
> > 
> >     My current approach is to decode an instruction that is deemed invalid
> > by the
> >     target ISA according to the manual.
> > 
> >     This is only implemented for x86 right now, but it is trivial to
> > implement on
> >     other architectures as long as there are unused opcodes.
> > 
> > 2) instrumentation: a set of generic macros that signal events that might be
> > of
> >     interest.
> 
> Etc.
> 
> In the context of another simulator, we developed a different
> technique, which would be quite general and might be of interest
> for QEMU.  We communicate with the simulator via a "fake" *device*,
> mapped into user-mode memory using an mmap call.  If someone
> devised and coded such a device, then it could be used from any
> guest.

I'v done something similar a while ago:
http://repo.or.cz/w/qemu/malc.git/shortlog/refs/heads/wctpci

-- 
mailto:av1474@comtv.ru

  reply	other threads:[~2010-07-26 11:17 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-22 22:30 [Qemu-devel] memory trace with qemu Eduardo Cruz
2010-07-23  3:12 ` Mulyadi Santosa
2010-07-23  6:15   ` Stefan Hajnoczi
2010-07-23  7:25     ` Mulyadi Santosa
2010-07-23  8:39       ` Stefan Hajnoczi
2010-07-23 19:24         ` Mulyadi Santosa
2010-07-23  7:34     ` Jun Koi
2010-07-23  8:43       ` Stefan Hajnoczi
2010-07-24  2:17     ` Yufei Chen
2010-07-24  9:05       ` Stefan Hajnoczi
2010-07-25 22:21         ` Eduardo Cruz
2010-07-26  2:05           ` Yufei Chen
2010-07-26 10:20           ` Lluís
2010-07-26 10:57             ` Eliot Moss
2010-07-26 11:16               ` malc [this message]
2010-07-26 12:41                 ` Lluís
2010-07-27  0:24                 ` Jun Koi
2010-07-27  6:46                   ` malc
2010-08-11 17:26                     ` Eduardo Cruz
2010-07-26 14:27             ` Yufei Chen
2010-07-26 17:32               ` Eduardo Cruz
2010-07-26 21:44                 ` Lluís
2010-07-26 22:16                   ` Eduardo Cruz

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=alpine.LNX.2.00.1007261515530.2555@linmac \
    --to=av1474@comtv.ru \
    --cc=cyfdecyf@gmail.com \
    --cc=eduardohmdacruz@gmail.com \
    --cc=moss@cs.umass.edu \
    --cc=mulyadi.santosa@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    --cc=xscript@gmx.net \
    /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).