Re: How to trace every memory access

Paolo Bonzini
2013-11-20T10:41:19Z

Il 20/11/2013 08:55, Arthur Chunqi Li ha scritto:
> Hi Paolo,
>
> Currently I can trap every first write/read to a memory page from
> guest VM (add codes in tdp_page_fault). If I want to trace every
> memory access to a page, how can I achieve such goal in KVM?

You don't. :)

If you are looking for something like this, a dynamic recompilation
engine (such as QEMU's TCG) probably ends up being faster.

Paolo