From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq417-0003ud-VA for qemu-devel@nongnu.org; Fri, 21 Jun 2013 12:16:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uq416-0006No-Rw for qemu-devel@nongnu.org; Fri, 21 Jun 2013 12:16:53 -0400 Received: from roura.ac.upc.edu ([147.83.33.10]:43756 helo=roura.ac.upc.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq416-0006Mi-HP for qemu-devel@nongnu.org; Fri, 21 Jun 2013 12:16:52 -0400 Received: from gw.ac.upc.edu (gw.ac.upc.es [147.83.30.3]) by roura.ac.upc.es (8.13.8/8.13.8) with ESMTP id r5LGGnAm021363 for ; Fri, 21 Jun 2013 18:16:49 +0200 Received: from localhost (unknown [84.88.51.85]) by gw.ac.upc.edu (Postfix) with ESMTP id 4090F6B020F for ; Fri, 21 Jun 2013 18:16:48 +0200 (CEST) From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: Date: Fri, 21 Jun 2013 18:16:48 +0200 In-Reply-To: (Basim Baig's message of "Thu, 20 Jun 2013 21:51:51 -0400") Message-ID: <871u7v1lsf.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] QEMU Memory subsystem List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Basim Baig writes: > Hello, > I am currently working on a project where I aim to log every memory access made > by a virtual machine running inside of QEMU (for analyzing kernel behavior). My > initial approach is to possibly hook into the QEMU mmu implementation and find > the place where the guest->host page translation or lookup is done. In this way > I can know any pages accessed by the guest (This is only the first level. > Eventually I would want to get logging at pointer granularity). I have been > reading through the source code and online documentations for a week now to get > a general sense of the qemu internals and codebase. > I just wanted some advice on what direction I should head to (or who I can talk > to) If I really want to get into depth of how I can make significant changes to > qemu memory management and mmu subsystem. This might provide what you're asking (event 'vmem'): https://projects.gso.ac.upc.edu/projects/qemu-dbi/wiki Lluis -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth