From: "Pavel Dovgaluk" <Pavel.Dovgaluk@ispras.ru>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Deterministic replay
Date: Wed, 22 Dec 2010 14:20:01 +0300 [thread overview]
Message-ID: <002101cba1ca$2cae3070$860a9150$@Dovgaluk@ispras.ru> (raw)
Hello.
I am working on implementation of deteministic execution replay technology
for Qemu. It should be similar to VMWare's replay debugging.
To make alarm timer (which invokes host_alarm_handler function)
determinisic, I changed it's behavior: it sets flag, that execution should
be stopped and this flag is checked before every instruction in the
translated code.
To allow breaking the execution in any moment, I added flag check and
exit_tb call before every instruction.
But there is one problem occurred: when I make the same actions like
gen_eob() function, Windows XP cannot load on emulated machine (it reboots
with GPF).
But when I remove two of the actions, everything is OK. These actions are
the following:
if (s->tb->flags & HF_INHIBIT_IRQ_MASK) {
gen_helper_reset_inhibit_irq();
}
if (s->tb->flags & HF_RF_MASK) {
gen_helper_reset_rf();
}
What are these actions for? When I remove any of them the booting process
is OK.
Please help me to understand interrupts mechanism or give links where to
read about it.
I apply my modifications to version 0.12.3 of Qemu. Please refer to it.
Pavel Dovgaluk
next reply other threads:[~2010-12-22 11:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-22 11:20 Pavel Dovgaluk [this message]
2010-12-22 12:35 ` [Qemu-devel] Deterministic replay Paul Brook
2010-12-22 12:43 ` Pavel Dovgaluk
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='002101cba1ca$2cae3070$860a9150$@Dovgaluk@ispras.ru' \
--to=pavel.dovgaluk@ispras.ru \
--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).