From: jeet Subject: Fw: Regarding SHM2 modes Date: Thu, 25 Jan 2007 16:46:35 +0530 (IST) Message-ID: <88196.92432.qm@web8407.mail.in.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2135995075==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-users-bounces@lists.xensource.com Errors-To: xen-users-bounces@lists.xensource.com To: xen-users@lists.xensource.com, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============2135995075== Content-Type: multipart/alternative; boundary="0-365374881-1169723795=:92432" --0-365374881-1169723795=:92432 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable =0AHi All,=0A=0AI am new to Xen.=0AI am very confuse with various SHM2 mode= defined in =0A"xen-3.0.4_1-src\xen\include\asm-x86\shadow.h"=0A=0A#define = SHM2_shift 10=0A/* We're in one of the shadow modes */=0A#define SHM2_enabl= e (1U << SHM2_shift)=0A/* Refcounts based on shadow tables instead of gu= est tables */=0A#define SHM2_refcounts (XEN_DOMCTL_SHADOW_ENABLE_REFCOUNT <= < SHM2_shift)=0A/* Enable log dirty mode */=0A#define SHM2_log_dirty (XEN_D= OMCTL_SHADOW_ENABLE_LOG_DIRTY << SHM2_shift)=0A/* Xen does p2m translation,= not guest */=0A#define SHM2_translate=0A (XEN_DOMCTL_SHADOW_ENABLE_TRANSLA= TE << SHM2_shift)=0A/* Xen does not steal address space from the domain for= its own booking;=0A * requires VT or similar mechanisms */=0A#define SHM2_= external (XEN_DOMCTL_SHADOW_ENABLE_EXTERNAL << SHM2_shift)=0A=0ACould anyb= ody please explain all the different mode defined here.=0AWhat are purposes= of these, how these are used in Xen. when it is enable and in which scenar= ios these are used.=0A=0AAny input would be helpful=0A=0AThanks in Advance.= =0A=0ARegards.=0AJeet=0A=0A=0A=0A =0A=0A=0A=0A=0A=0A=09=09=0A______________= ____________________________________________=0AYahoo! India Answers: Share = what you know. Learn something new=0Ahttp://in.answers.yahoo.com/ --0-365374881-1169723795=:92432 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 vari= ous SHM2 mode defined in
"xen-3.0.4_1-src\xen\include\asm-x86\shadow.h"=

#define SHM2_shift 10
/* We're in one of the shadow modes */
= #define SHM2_enable    (1U << SHM2_shift)
/* Refcou= nts based on shadow tables instead of guest tables */
#define SHM2_refco= unts (XEN_DOMCTL_SHADOW_ENABLE_REFCOUNT << SHM2_shift)
/* Enable log d= irty mode */
#define SHM2_log_dirty (XEN_DOMCTL_SHADOW_ENABLE_LOG_DIRTY = << SHM2_shift)
/* Xen does p2m translation, not guest */
#defin= e SHM2_translate=0A (XEN_DOMCTL_SHADOW_ENABLE_TRANSLATE << SHM2_shift= )
/* Xen does not steal address space from the domain for its own bookin= g;
 * requires VT or similar mechanisms */
#define SHM2_external=   (XEN_DOMCTL_SHADOW_ENABLE_EXTERNAL << SHM2_shift)

Could= anybody please explain all the different mode defined here.
What are pu= rposes of these, how these are used in Xen. when it is enable and in which = scenarios these are used.

Any input would be helpful

Thanks i= n Advance.

Regards.
Jeet



=0A=09=0A= =0A=09=0A=09=09
=0AHere=92s a new way to find what you're= looking for - Yahoo! Answers --0-365374881-1169723795=:92432-- --===============2135995075== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users --===============2135995075==--