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: "Petersson, Mats" <Mats.Petersson@xxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-users] Tracking DomU memory
From: Security Initiative Team <passrete@xxxxxxxxx>
Date: Mon, 9 Oct 2006 09:49:46 -0700 (PDT)
Delivery-date: Tue, 10 Oct 2006 02:21:27 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=d3OEHCIkRXsKd7UktS3SCMo0yv8bTsHlI2ZPAItEwoVW1agkYKlir3Tnc9KJ+03B/aqdaMyrP6ZtySRes6IXSb8MnMN+t+lI/YFuwlK3MQB+/GFQ+b7j2klOVPXA7gneQjLb+1NQQZALk+6U28sijTkAJILw+VKCkZ89pDpRHIk= ;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <907625E08839C4409CE5768403633E0B018E15E9@xxxxxxxxxxxxxxxxx>
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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


From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Security Initiative Team
Sent: 08 October 2006 02:22
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Tracking DomU memory

Hi,

To track the memory being used by an application running in DomU,
is it better to make tweaks in Dom0 or the hypervisor layer?

Is it possible to just put some hooks in the do_mmu_update hypercall?

Also, how does one enable log-dirty shadow mode?
Does this actually createa log file somewhere?

-Craig

How low will we go? Check out Yahoo! Messenger?s low PC-to-Phone call rates.


Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>