WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Tracking DomU memory

To: "Security Initiative Team" <passrete@xxxxxxxxx>
Subject: Re: [Xen-users] Tracking DomU memory
From: "Diwaker Gupta" <diwaker.lists@xxxxxxxxx>
Date: Fri, 15 Dec 2006 14:56:07 -0800
Cc: "Petersson, Mats" <Mats.Petersson@xxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 15 Dec 2006 14:56:15 -0800
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gR23k9UF/uNoI73Z9vkQHeEyQIxMCPr/jsfvmA+RoLxMFEGn9WR1k2BMw09zM6CPuvnVdNPXvsTiovU/LAlK8QYsNunm6kgaaTnsGA1P3wP2vOmuMLnaABIi5dDsjlXFvSXasEE/xTogPNWgipff+7ce8sKWU+fxontOpxJCnG4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20061009164946.39396.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <907625E08839C4409CE5768403633E0B018E15E9@xxxxxxxxxxxxxxxxx> <20061009164946.39396.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I actually want do to something similar, but simpler. I'm only
interested in keeping track of pages that a guest domain is accessing
(both reads and writes). I'm _not_ looking for the *exact* memory
address -- just the physical page being accessed. Can log dirty be
modified to keep track of read accesses as well?

Thanks,
Diwaker

On 10/9/06, Security Initiative Team <passrete@xxxxxxxxx> wrote:
My main purpose is to know when a user-level application in DomU
is updating its memory.
(Tracking changes to the stack segment might be too hard due to frequent
memory updates, so maybe only the "text" segment).

I want to be able to track this from either Dom0 or the hypervisor layer,
whichever is easier.

When is ptwr_emulated_update() used and when is do_mmu_update()
used?

Thanks,
-Criag


"Petersson, Mats" <Mats.Petersson@xxxxxxx> wrote:

What do you ACTUALLY want to do?

log-dirty doesn't log to a file - it keeps track of "dirty" pages in a list
in memory, but doesn't actually store it in a file [ever, at all].

do_mmu_update is possibly a good place to hook into, but it depends on what
you want to do... [And it's non-trivial code, so beware of complications
from changing it].

You may want to look at ptwr_emulated_update, as that's used when the
do_mmu_update() hypercall isn't used to update a page-table-entry.

--
Mats


 ________________________________
--
Web/Blog/Gallery: http://floatingsun.net/blog

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>