qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Qemu memory operations
@ 2012-08-12 16:31 Prathmesh Kallurkar
  2012-08-14 11:58 ` Prathmesh Kallurkar
  2012-08-14 21:17 ` Steven
  0 siblings, 2 replies; 6+ messages in thread
From: Prathmesh Kallurkar @ 2012-08-12 16:31 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1201 bytes --]

Hello friends,
I intend to use Qemu to generate a memory trace for the execution of a x86
guest operating system.

According to tcg
wiki<http://wiki.qemu.org/Documentation/TCG/backend-ops#Load.2FStore>page,
Qemu uses a handful of helpers to generate load/stores to the
target(guest) memory.
This list of instructions is tcg_gen_qemu_ld8s/u, tcg_gen_qemu_ld16s/u,
tcg_gen_qemu_ld32s/u, tcg_gen_qemu_ld64. (We have a similar set for store
instructions).
I am trapping all calls to the above functions in the
target-i386/translate.c file

However, I am still missing load/stores of certain instructions like
cmp ecx, [r12+0x4]
mov r10b, [r13+0x0]
mov byte [rax+0xf0000], 0x0
mov byte [rax+rdx], 0x0

Questions ::
1) Can someone please point to other load/store points (direct or indirect)
that I am missing ??
2) Does qemu provide a single entry point function for accesses to guest
memory (like guest_read()) which can be instrumented for tracing all loads
from the guest memory ???
3) Can somebody please point to a good documentation where I can understand
how qemu maintains the state of the guest memory ??

Thanks in advance.


Regards,
Prathmesh Kallurkar <http://www.cse.iitd.ac.in/%7Eprathmesh>

[-- Attachment #2: Type: text/html, Size: 1308 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-08-15 17:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-12 16:31 [Qemu-devel] Qemu memory operations Prathmesh Kallurkar
2012-08-14 11:58 ` Prathmesh Kallurkar
2012-08-14 18:44   ` Blue Swirl
2012-08-14 21:17 ` Steven
2012-08-15  8:57   ` Prathmesh Kallurkar
2012-08-15 17:21     ` Steven

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).