* [Qemu-devel] qemu replay?
@ 2008-07-21 18:02 Tim Leek
2008-07-22 16:32 ` Blue Swirl
0 siblings, 1 reply; 2+ messages in thread
From: Tim Leek @ 2008-07-21 18:02 UTC (permalink / raw)
To: qemu-devel; +Cc: Tim Leek
[-- Attachment #1: Type: text/plain, Size: 1662 bytes --]
A quick question for the gurus. Please cc my email address with
replies?
Is there anything out there that implements record/replay for Qemu?
I'm sure all of you are aware of this paper. Others have done similar
things.
"Decoupling Dynamic Program Analysis from Execution in Virtual
Environments". Chow, Garfinkel, and Chen of VMWare. USENIX 2008
"Best Paper".
It uses VMWare's record feature to save to disk a log of all inputs to
the CPU and then (after some crazy engineering jiggery-pokery) sucks
this log into a heavily instrumented version of Qemu which replays the
log to generate the same instruction stream as during record. Even
though the instrumentation of Qemu is heavy (bounds checking, e.g.),
replay ends up running about as fast as record because replay doesn't
need to do some things. Like HLT, because "interrupt delivery is
immediate". Like disk and network writes. Etc. Basically, it knows
the future and the future is in its log.
It seems a Qemu record and replay feature would be awfully useful for
a bunch of reasons and to a bunch of people. Any chance such a thing
exists? Anything in the works? The system described in this paper is
both not available and, apparently, a bit of a Frankenstein's monster:
VMware -> VMware (again) -> Qemu. Yuck! Why not just Qemu -> Qemu?
Answer is because these researchers work for VMware, I imagine.
Any information greatly appreciated. We might end up doing this
ourselves but don't want to reinvent any wheels that are already
sufficiently square!
Tim Leek
Technical Staff
MIT Lincoln Laboratory
Lexington, MA, 02144
tleek@ll.mit.edu
[-- Attachment #2: Type: text/html, Size: 2781 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] qemu replay?
2008-07-21 18:02 [Qemu-devel] qemu replay? Tim Leek
@ 2008-07-22 16:32 ` Blue Swirl
0 siblings, 0 replies; 2+ messages in thread
From: Blue Swirl @ 2008-07-22 16:32 UTC (permalink / raw)
To: qemu-devel; +Cc: Tim Leek
On 7/21/08, Tim Leek <tleek@ll.mit.edu> wrote:
>
> A quick question for the gurus. Please cc my email address with replies?
>
> Is there anything out there that implements record/replay for Qemu? I'm
> sure all of you are aware of this paper. Others have done similar things.
Interesting paper. There are patches to capture network traffic to a
file and some I/O can be captured by recompiling with debug code
enabled. Some of this can be replayed (just keyboard and mouse) using
the monitor interface, but not for other I/O.
Support of record/replay should not be too difficult to add. I haven't
looked, but the live migration stuff in Xen could be a good starting
point.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-22 16:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-21 18:02 [Qemu-devel] qemu replay? Tim Leek
2008-07-22 16:32 ` Blue Swirl
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).