Skip to contentSkip to conversation

"magic" pages like xenstore and console

DISCUSSION Tim Wood 2 participants 2 messages Feb 6, 2007

lore
Share & tools
lore

Tim Wood

author
#0 lore raw

Hi,

First, I should note that unfortunately I am stuck using an outdated version of xen (from last spring, prior to new shadow code). Hopefully my question below isn't too outdated or someone has a good memory.

Xen has a few "magic" pages stored in the memory image of each domain such as the xen store page and the console page. Does anyone know if the page immediately following the console page is also special in some way?

The DOM0_GETMEMLIST call gets a list of pages used by a domain by stepping through the "page_list" linked list stored in the "domain" struct. I'm finding that in translated shadow mode, this list is one page shorter than it should be, and that the missing page is the one which immediately follows the console page. So we have <...> <xen store> <console> <MISSING> <...>

Anyone have an idea on what makes that page special and why it isn't included in the page_list as normal?

thanks,
Tim

#1 lore raw
Quoted 9 lines · Tim Wood

The DOM0_GETMEMLIST call gets a list of pages used by a domain by stepping through the "page_list" linked list stored in the "domain" struct. I'm finding that in translated shadow mode, this list is one page shorter than it should be, and that the missing page is the one which immediately follows the console page. So we have <...> <xen store> <console> <MISSING> <...>

Anyone have an idea on what makes that page special and why it isn't included in the page_list as normal?

Probably it's the shared_info page. That and grant-table pages are allocated from the 'Xen heap' and do not appear in getmemlist output.

-- Keir