From: tgh Subject: Re: Page tables in Xen Date: Mon, 03 Dec 2007 09:32:23 +0800 Message-ID: <47535CA7.9090000@sina.com.cn> References: <6bc632150711282130i113857e7p7cfb183af9701099@mail.gmail.com> <1196315351.13722.14.camel@thinkpad.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1196315351.13722.14.camel@thinkpad.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Daniel Stodden Cc: weiming , xen-devel@lists.xensource.com, Haifeng He List-Id: xen-devel@lists.xenproject.org hi I am confused about shadow page table in the paravirtual mode in xen, does guestOS have all of its own processes'page tables,and xen keeps=20 the very exactly all of the guestOS's processes page tables for a copy?=20 or say ,it is xen who keeps the only copy of the guestOS's processes=20 page tables ,and guestOS accesses to its processes's page tables=20 through some hypercall? or ,what about it ? If the guestOS has all of its processes's page talbes, while xen=20 maintain the copy of all those page tables ,is it an inefficient usage=20 of memory ,or what is the trick behind ? Thanks in advance Daniel Stodden =E5=86=99=E9=81=93: > On Thu, 2007-11-29 at 11:00 +0530, pradeep singh rautela wrote: > =20 >> On Nov 29, 2007 1:42 AM, Haifeng He wrote: >> =20 >>> Thanks for answering my question. I am talking about PV mode. What ab= out shadow >>> page table? Does it mean, Xen will keep (real) copies of page tables? >>> =20 >> Shadown page tables are employed in HVM guests not PV guests. >> =20 > > regarding shadowed PV domains, there's still > XENFEAT_auto_translated_physmap. but it's rather exotic and therefore > rarely used. > > regarding the original question: yes, this means xen keeps the real pag= e > tables, while guests map pseudo-physical (i.e. linear) memory in what > they (may) believe to be the real ones. > > regards, > daniel > > =20