Skip to contentSkip to conversation

paging

DISCUSSION PUCCETTI Armand 1 participant 1 message Aug 2, 2006

lore
Share & tools
lore
#0 lore raw

I have a few easy questions about the xen code doing paging on AMD64.

How is the page translation function virt-to-phys (AMD64 arch programmer manual, page 147) implemented ? Refining,

- In file /xen/include/asm-x86/page.h: what are the functions lXe_get_pfn, lXe_get_intpte, lXe_get_paddr, lXe_get_page, lXe_from_paddr (for X=1,..4) doing?

- One set of functions puzzles me: l4e_to_l3e, l3e_to_l2e and l2e_to_l1e. The comment says "Pagetable walking"... but what does this mean? do they help to move from one page map to another?

- In what variables are the real page tables (l4 to l1) stored?

- Does the code implement only long-mode page translation for AMD64?

- Is there anything explaining page.h, page_alloc.c and mm.c ?....

thanks and sorry for the trivial questions.

Armand