From mboxrd@z Thu Jan 1 00:00:00 1970 From: PUCCETTI Armand Subject: paging Date: Wed, 02 Aug 2006 17:55:28 +0200 Message-ID: <44D0CAF0.3050506@cea.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: 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 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