From: jeet Subject: Regarding SHM2 modes Date: Thu, 25 Jan 2007 15:51:17 +0530 (IST) Message-ID: <822679.93479.qm@web8406.mail.in.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0011394805==" 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-users@lists.xensource.com, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0011394805== Content-Type: multipart/alternative; boundary="0-509063557-1169720477=:93479" --0-509063557-1169720477=:93479 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi All,=0A=0AI am new to Xen.=0AI am very confuse with various SHM2 mode de= fined in =0A"xen-3.0.4_1-src\xen\include\asm-x86\shadow.h"=0A=0A#define SHM= 2_shift 10=0A/* We're in one of the shadow modes */=0A#define SHM2_enable = (1U << SHM2_shift)=0A/* Refcounts based on shadow tables instead of guest= tables */=0A#define SHM2_refcounts (XEN_DOMCTL_SHADOW_ENABLE_REFCOUNT << S= HM2_shift)=0A/* Enable log dirty mode */=0A#define SHM2_log_dirty (XEN_DOMC= TL_SHADOW_ENABLE_LOG_DIRTY << SHM2_shift)=0A/* Xen does p2m translation, no= t guest */=0A#define SHM2_translate (XEN_DOMCTL_SHADOW_ENABLE_TRANSLATE << = SHM2_shift)=0A/* Xen does not steal address space from the domain for its o= wn booking;=0A * requires VT or similar mechanisms */=0A#define SHM2_extern= al (XEN_DOMCTL_SHADOW_ENABLE_EXTERNAL << SHM2_shift)=0A=0ACould anybody pl= ease explain all the different mode defined here.=0AWhat are purposes of th= ese, how these are used in Xen. when it is enable and in which scenarios th= ese are used.=0A=0AAny input would be helpful=0A=0AThanks in Advance.=0A=0A= Regards.=0AJeet=0A=0A=0A=0A=0A=09=09=0A____________________________________= ______________________=0AYahoo! India Answers: Share what you know. Learn s= omething new=0Ahttp://in.answers.yahoo.com/ --0-509063557-1169720477=:93479 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hi All,

I am new to Xen.
I am very confuse with various S= HM2 mode defined in
"xen-3.0.4_1-src\xen\include\asm-x86\shadow.h"
<= br>#define SHM2_shift 10
/* We're in one of the shadow modes */
#defi= ne SHM2_enable    (1U << SHM2_shift)
/* Refcounts b= ased on shadow tables instead of guest tables */
#define SHM2_refcounts = (XEN_DOMCTL_SHADOW_ENABLE_REFCOUNT << SHM2_shift)
/* Enable log di= rty mode */
#define SHM2_log_dirty (XEN_DOMCTL_SHADOW_ENABLE_LOG_DIRTY &= lt;< SHM2_shift)
/* Xen does p2m translation, not guest */
#define= SHM2_translate (XEN_DOMCTL_SHADOW_ENABLE_TRANSLATE << SHM2_shift)
/* Xen does no= t steal address space from the domain for its own booking;
 * requi= res VT or similar mechanisms */
#define SHM2_external  (XEN_DOMCTL_= SHADOW_ENABLE_EXTERNAL << SHM2_shift)

Could anybody please exp= lain all the different mode defined here.
What are purposes of these, ho= w these are used in Xen. when it is enable and in which scenarios these are= used.

Any input would be helpful

Thanks in Advance.

R= egards.
Jeet

=0A=09=0A=0A=09=0A=09=09 =0AHere=92s a new way to find what you're looking for - Yahoo! Answers --0-509063557-1169720477=:93479-- --===============0011394805== 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 --===============0011394805==--