From: "Carol Gao" Subject: Re: page_info structure in Xen Date: Wed, 9 Aug 2006 09:22:27 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline 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 > > In the file xen/include/asm-x86/mm.h, a "page_info" structure is > > defined. I am wondering when the PGT_type is set to be PGT_none and > > when it is set to be PGT_writable_page? > > It is set to PGT_writable_page when any guest has a writable mapping of that > page. If the page is read only then it has type PGT_none. Thanks for the reply. When the guest loads the executable object's or library's text section into its pagecache, will the page_info be PGT_none or PGT_writable_page? Where can I find those functions that set the value of PGT_type? Thanks a lot. Carol