Re: [Qemu-devel] Binary Translation hooking - reading registers

2011-02-13 Thread Peter Maydell
On 13 February 2011 17:14, felix.matenaar@rwth-aachen wrote: > To be more specific on my env update problem, here an example: > > push ebp > mv esp,ebp > /* do something */ > call 0xfoo > test eax,eax > /* do something */ > ret > > The first line is the start of a block. What I did was adding a >

Re: [Qemu-devel] Binary Translation hooking - reading registers

2011-02-13 Thread felix.matenaar@rwth-aachen
On 02/13/2011 06:38 AM, Mulyadi Santosa wrote: > Hi > > On Sun, Feb 13, 2011 at 10:48, felix.matenaar@rwth-aachen > wrote: >> 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 ques

Re: [Qemu-devel] Binary Translation hooking - reading registers

2011-02-13 Thread Blue Swirl
On Sun, Feb 13, 2011 at 5:48 AM, felix.matenaar@rwth-aachen wrote: > 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 machi

Re: [Qemu-devel] Binary Translation hooking - reading registers

2011-02-12 Thread Mulyadi Santosa
Hi On Sun, Feb 13, 2011 at 10:48, felix.matenaar@rwth-aachen wrote: > 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 funct

[Qemu-devel] Binary Translation hooking - reading registers

2011-02-12 Thread felix.matenaar@rwth-aachen
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 wh