From: jeet Subject: Info regarding implementation of page tables Date: Fri, 23 Feb 2007 11:17:33 +0530 (IST) Message-ID: <27384.33173.qm@web8810.mail.in.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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 Hi All,=0A=0AI am trying to understand shadow implementation in Xen for HVM= (intel vt-x)=0A=0AA guest operating system is given a range of "physical" = memory to =0Awork with, and it implements its own page tables to map betwee= n its virtual =0Aaddress spaces and that memory range. But the guest's "phy= sical" memory is a =0Avirtual range administered by the host; guests do not= deal directly with "bare =0Ametal" memory (RAM).=0A The result is that the= re are actually two sets of page tables =0Abetween a virtual address space = on a virtualized guest and the real, physical =0Amemory it maps to. The gue= st can set up one level of translation (guest page table), but only the =0A= host can manage the mapping between the guest's "physical" memory and the r= eal =0Athing.=0A=0A=0AThis situation is handled by way of shadow page table= s. The guest OS thinks it is maintaining its own page tables, but the proce= ssor =0Adoes not actually use them. Instead, the VMM implements a "shadow" = table =0Awhich mirror's the guest's table, but which maps guest virtual add= resses =0Adirectly to physical addresses(RAM).=0A=0A=0A When a guest is cre= ated all the shadow table entry are invaild(empty); every page =0Afault on = the guest then results in the filling in of the appropriate shadow =0Aentry= . Once the guest has faulted in the pages it needs, it will be able to run = =0Aat native speed with no further hypervisor attention required. =0A=0A=0A= =0ABut once the guest performs a context switch, shadow page table is dumpe= d and a new one is started. Changing =0Athe shadow table is required, since= the process running after the context switch =0Awill have a different set = of address mappings. =0A =0A=0AIs this how, shadow page table is implemente= d in xen?=0Aif not It would be great help if any one could explain implemen= tation of shadow PT in Xen.=0A=0ATIA=0Ajeet=0A=0A=0A=0A=0A=0A=0A=09=09=0A__= ________________________________________________________=0AYahoo! India Ans= wers: Share what you know. Learn something new=0Ahttp://in.answers.yahoo.co= m/