From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpvPj-0002Vx-G5 for qemu-devel@nongnu.org; Fri, 21 Jun 2013 03:05:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpvPh-0005G2-Gh for qemu-devel@nongnu.org; Fri, 21 Jun 2013 03:05:43 -0400 Received: from e28smtp09.in.ibm.com ([122.248.162.9]:36838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpvPg-0005Fr-Gs for qemu-devel@nongnu.org; Fri, 21 Jun 2013 03:05:41 -0400 Received: from /spool/local by e28smtp09.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 21 Jun 2013 12:31:04 +0530 Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by d28dlp01.in.ibm.com (Postfix) with ESMTP id 5D475E0056 for ; Fri, 21 Jun 2013 12:35:01 +0530 (IST) Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r5L75ghN32505888 for ; Fri, 21 Jun 2013 12:35:42 +0530 Received: from d28av02.in.ibm.com (loopback [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r5L75XHv019395 for ; Fri, 21 Jun 2013 17:05:33 +1000 Message-ID: <51C3FAFC.3020700@linux.vnet.ibm.com> Date: Fri, 21 Jun 2013 15:04:28 +0800 From: Wenchao Xia MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] QEMU Memory subsystem List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Basim Baig Cc: qemu-devel@nongnu.org 于 2013-6-21 9:51, Basim Baig 写道: > 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. > > Thanks, > Mirza Basim Baig > Stony Brook University > I think you can archieve your goal relative easily in soft-mmu mode, but in KVM case, you will need to dig a bit in kvm.ko in kernel source code. -- Best Regards Wenchao Xia