From mboxrd@z Thu Jan 1 00:00:00 1970 From: ruby young Subject: Questions about memory zone Date: Tue, 5 May 2009 16:05:15 +0800 Message-ID: <4046dbfd0905050105l1054343ch6bac7b30eb0dde2c@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0363554821==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , 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 --===============0363554821== Content-Type: multipart/alternative; boundary=001636e1faec2da62a046925bda6 --001636e1faec2da62a046925bda6 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable Hi, all~ I'm interested in memory of xen. And I wondered what does the real mean of xen 'zone'. It seems different from linux 'zone'. In the source code of xen-3.3.0/xen/common/page_alloc.c, there is defined: #define pfn_dom_zone_type(_pfn) (fls(_pfn)-1) and NR_ZONES is defined: #define NR_ZONES (PADDR_BITS - PAGE_SHIFT) It seems Zone in xen set up as physic address and are separate by the last pfn bit set. But Why does Xen Zone organize like this? And What does the Zone mean? Best Wishes! Ruby Young --=20 Best wishes =D1=EE=D1=FA =B1=B1=BE=A9=BA=BD=BF=D5=BA=BD=CC=EC=B4=F3=D1=A7=BC=C6=CB=E3=BB=FA=D1=A7=D4= =BA=CC=E5=CF=B5=BD=E1=B9=B9=D1=D0=BE=BF=CB=F9 =B5=E7=BB=B0:010-82338059-132 =D3=CA=BC=FE:9907yruby@gmail.com =B5=D8=D6=B7=A3=BA=B1=B1=BE=A9=CA=D0=BA=A3=B5=ED=C7=F8=D1=A7=D4=BA=C2=B737= =BA=C5=B1=B1=BE=A9=BA=BD=BF=D5=BA=BD=CC=EC=B4=F3=D1=A7=D0=C2=D6=F7=C2=A5 G= =D7=F91026 ---------------------------------------------------------------------------= ----- Yang Yang Institute of Computer Architecture and System BeiHang University=A3=A8BUAA=A3=A9 Tel: (86-10)82338059-132 Email: 9907yruby@gmail.com Addr: Room 1026,Building G,The New Main Building,37# Xueyuan Rd.,Haidian District, Beijing 100083, PRC --001636e1faec2da62a046925bda6 Content-Type: text/html; charset=GB2312 Content-Transfer-Encoding: quoted-printable
Hi, all~
I'm interested in memory of xen. And I wondered what does the real= mean of xen 'zone'. It seems different from linux 'zone'. =
In the source code of xen-3.3.0/xen/common/page_alloc.c, there is defi= ned:
#define pfn_dom_zone_type(_p= fn) (fls(_pfn)-1)
 
and NR_ZONES is defined:
#define NR_ZONES (PADDR_BITS= - PAGE_SHIFT)
 
It seems Zone in xen = set up as physic address and are separate by the last pfn bit set.
But Why does Xen Zone organize like this? And What does the Zone mean?=
 
Best Wishes!
 
           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;         Ruby Young

--
Best wishes

=D1=EE=D1=FA
=B1=B1=BE=A9=BA=BD= =BF=D5=BA=BD=CC=EC=B4=F3=D1=A7=BC=C6=CB=E3=BB=FA=D1=A7=D4=BA=CC=E5=CF=B5=BD= =E1=B9=B9=D1=D0=BE=BF=CB=F9
=B5=E7=BB=B0:010-82338059-132
=D3=CA=BC= =FE:9907yruby@gmail.com
=B5= =D8=D6=B7=A3=BA=B1=B1=BE=A9=CA=D0=BA=A3=B5=ED=C7=F8=D1=A7=D4=BA=C2=B737=BA= =C5=B1=B1=BE=A9=BA=BD=BF=D5=BA=BD=CC=EC=B4=F3=D1=A7=D0=C2=D6=F7=C2=A5 G=D7= =F91026
----------------------------------------------------------------= ----------------
Yang Yang
Institute of Computer Architecture and System
BeiHang Univ= ersity=A3=A8BUAA=A3=A9
Tel: (86-10)82338059-132
Email: 9907yruby@gmail.com
Addr: Room 1026,Buildin= g G,The New Main Building,37# Xueyuan Rd.,Haidian District, Beijing 100083,= PRC
--001636e1faec2da62a046925bda6-- --===============0363554821== 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 --===============0363554821==--