From: Abhinav Srivastava Subject: How to intercept memory operation in Xen Date: Mon, 13 Nov 2006 17:25:57 +0000 (GMT) Message-ID: <20061113172557.34567.qmail@web7910.mail.in.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1085898032==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1085898032== Content-Type: multipart/alternative; boundary="0-1751221966-1163438757=:33399" Content-Transfer-Encoding: 8bit --0-1751221966-1163438757=:33399 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi all, I am new to the Xen and currently using Xen 3.0.3. My goal is to provide memory logging facility in Dom0. If any guest domain (DomU) application tries to access any memory area, I would like to know in dom0 what area they are accessing. So that if any user space applications try to access kernel memory then i can see in dom0 and using my detection system, i can say that it is illegal memory request as user space applications are not allowed to use kernel memory. I have three Qs related to this: 1) Is this doable? 2) If yes, how should I start with? Do i need to intercept hypercalls? If yes, how to do this? 3) To intercept memory operation, do i need to change in the Xen code? If yes, it would be great if you could point me exact file where changes are to be made. 4) Can it be done using some application or IDS in dom0 with some hooks without changing the Xen code? I would really appreciate your help. Thanks, Abhi --------------------------------- Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW --0-1751221966-1163438757=:33399 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
Hi all,

I am new to the Xen and currently using Xen 3.0.3. My goal is to provide memory logging facility in Dom0. If any guest domain (DomU) application tries to access any memory area, I would like to know in dom0 what area they are accessing. So that if any user space applications try to access kernel memory then i can see in dom0 and using my detection system, i can say that it is illegal memory request as user space applications are not allowed to use kernel memory. I have three Qs related to this:

1) Is this doable?

2) If yes, how should I start with? Do i need to intercept hypercalls? If yes, how to do this?

3) To intercept memory operation, do i need to change in the Xen code? If yes, it would be great if you could point me exact file where changes are to be made.

4) Can it be done using some application or IDS in dom0 with some hooks without changing the Xen code?

I would really appreciate your help.

Thanks,
Abhi


Find out what India is talking about on - Yahoo! Answers India
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW --0-1751221966-1163438757=:33399-- --===============1085898032== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1085898032==--