From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: How to trace every memory access Date: Wed, 20 Nov 2013 11:41:16 +0100 Message-ID: <528C91CC.5090106@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: kvm To: Arthur Chunqi Li Return-path: Received: from mx1.redhat.com ([209.132.183.28]:16804 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750969Ab3KTKlT (ORCPT ); Wed, 20 Nov 2013 05:41:19 -0500 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: 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