[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] memory trace with qemu
From: |
Lluís |
Subject: |
Re: [Qemu-devel] memory trace with qemu |
Date: |
Mon, 26 Jul 2010 14:41:07 +0200 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/24.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
malc writes:
>> > 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
Ah, although somewhat heavier, this is much more clever and generic :)
My only concern is on the need of running as root to mmap /dev/mem, but I could
write a dumb character device that can be mmaped by everybody.
Lluis
--
"And it's much the same thing with knowledge, for whenever you learn
something new, the whole world becomes that much richer."
-- The Princess of Pure Reason, as told by Norton Juster in The Phantom
Tollbooth
- Re: [Qemu-devel] memory trace with qemu, (continued)
- Re: [Qemu-devel] memory trace with qemu, Yufei Chen, 2010/07/23
- Re: [Qemu-devel] memory trace with qemu, Stefan Hajnoczi, 2010/07/24
- Re: [Qemu-devel] memory trace with qemu, Eduardo Cruz, 2010/07/25
- Re: [Qemu-devel] memory trace with qemu, Yufei Chen, 2010/07/25
- Re: [Qemu-devel] memory trace with qemu, Lluís, 2010/07/26
- Re: [Qemu-devel] memory trace with qemu, Eliot Moss, 2010/07/26
- Re: [Qemu-devel] memory trace with qemu, malc, 2010/07/26
- Re: [Qemu-devel] memory trace with qemu,
Lluís <=
- Re: [Qemu-devel] memory trace with qemu, Jun Koi, 2010/07/26
- Re: [Qemu-devel] memory trace with qemu, malc, 2010/07/27
- Re: [Qemu-devel] memory trace with qemu, Yufei Chen, 2010/07/26
- Re: [Qemu-devel] memory trace with qemu, Eduardo Cruz, 2010/07/26
- Re: [Qemu-devel] memory trace with qemu, Lluís, 2010/07/26
- Re: [Qemu-devel] memory trace with qemu, Eduardo Cruz, 2010/07/26