page_info structure in Xen
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.
Quoted 3 lines · Carol Gao
In the file
xen/include/asm-x86/mm.h, a "page_info" structure is defined. I am wondering when thePGT_typeis set to bePGT_noneand when it is set to bePGT_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