How to modify QEMU to capture memory operations of the guest OS?
Hi All,
I am wondering if it is possible to modify QEMU source code such that I can log the memory operations by a guest OS. According to QEMU documentation, it has a compiled code piece for each instruction of the guest OS (or the simulated CPU?). Where is each instruction read and replaced with the pre-compiled code? Is it in dyngen.c? I read dyngen.c but can not figure out how the replacement is done. Can anybody shed light on this process as well as how the logging could be done?
Many thanks,
Jinpeng
-------------------------------
Jinpeng Wei
Ph.D. student
College of Computing
Georgia Institute of Technology
Atlanta, GA 30332-0280
http://www.cc.gatech.edu/~weijp