Re: How to trace every memory access

Arthur Chunqi Li
2013-12-20T09:15:50Z

Hi Paolo,

When using EPT in KVM, does every vcpu has an EPT paging structure or
all vcpus share one?

Thanks,
Arthur

On Wed, Nov 20, 2013 at 6:41 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:
> 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.