From: "felix.matenaar@rwth-aachen" <felix.matenaar@rwth-aachen.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Binary Translation hooking - reading registers
Date: Sun, 13 Feb 2011 04:48:12 +0100 [thread overview]
Message-ID: <4D57547C.6070508@rwth-aachen.de> (raw)
Hello everyone,
i am working on a project adding instrumentation into qemu. My approach
is to use gen_helper stuff do hook specific opcodes like call or ret to
gain information about running processes in the virtual machine.
Today I noticed that the CPUState* env is not in all cases up-to-date
when my hooks are called on block execution. That makes totally sense
since blocks are natively executed in one step as far as I understood so
there is no code which would keep the cpu environment up-to-date.
To achieve my goal, it is necessary being able reading actual register
configuration like eax when a ret hook is called to get a function
return value. So my question is how I can do this. Are there already
some functions which generate code to update the cpu environment? If
not, is there anything you can point me towards for adding support?
Target is windows XP on i386.
Regards,
Felix
next reply other threads:[~2011-02-13 3:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-13 3:48 felix.matenaar@rwth-aachen [this message]
2011-02-13 5:38 ` [Qemu-devel] Binary Translation hooking - reading registers Mulyadi Santosa
2011-02-13 17:14 ` felix.matenaar@rwth-aachen
2011-02-13 17:34 ` Peter Maydell
2011-02-13 8:55 ` Blue Swirl
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=4D57547C.6070508@rwth-aachen.de \
--to=felix.matenaar@rwth-aachen.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.