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? Thanks. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 7/8/06 7:24 pm, "Carol Gao" <carol.gao@oracle.com> wrote:> 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. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
> > 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel