From: "Wu Bingzheng" Subject: Re:Re:Re:Re: Questions about shadow page table. Date: Wed, 27 May 2009 11:09:51 +0800 (CST) Message-ID: <22314741.143001243393791075.JavaMail.coremail@bj163app62.163.com> References: <12737400.124241243392478610.JavaMail.coremail@bj163app62.163.com> <3841352.530971243347632779.JavaMail.coremail@bj163app57.163.com> <20090526095459.GA16056@york.uk.xensource.com> <27156115.386171243327618700.JavaMail.coremail@bj163app31.163.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0123354310==" Return-path: In-Reply-To: <12737400.124241243392478610.JavaMail.coremail@bj163app62.163.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Wu Bingzheng Cc: xen-devel , Tim Deegan List-Id: xen-devel@lists.xenproject.org --===============0123354310== Content-Type: multipart/alternative; boundary="----=_Part_38817_32785127.1243393791074" ------=_Part_38817_32785127.1243393791074 Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 7bit In another word, how can page-fault handler distinguish the shadow-page-fault and non-shadow-page-fault? When reading it's code, I skip all the code enabled only #if SHADOW_OPTIMIZATIONS, is that ok? Hi, I have another question about Shadow. If a process writes a read-only page in guest OS, how does the page-fault handler deal with it? In sh_page_fault() [xen/arch/x86/mm/shadow/multi.c], which part deals with this case? In the label `emulate` and `not_a_shadow_fault` ? But the points where jumps to the label `emulate` seems not to be this case (write readonly pages in guest), but seems to emulate accesses to page tables. Thanks, Wu ------=_Part_38817_32785127.1243393791074 Content-Type: text/html; charset=gbk Content-Transfer-Encoding: quoted-printable


In another word, how can page-fault handler distinguish = the shadow-page-fault and non-shadow-page-fault?

When reading it's c= ode, I skip all the code enabled only   #if SHADOW_OPTIMIZATIONS,= is that ok?
= Hi,

I have another question about Shadow.If a process writes a read-only page i= n guest OS, how does the page-fault hand= ler deal with it?
In sh_page_fault() [xen/arch/= x86/mm/shadow/multi.c], which part deals with this=  case? In the label `emulate` and `not_a= _shadow_fault` ?  But the points where j= umps to the label `emulate` seems not to=  be this case (write readonly pages in&n= bsp;guest), but seems to emulate accesses to&= nbsp;page tables.

Thanks,
Wu


<= hr/> =B4=A9=D4=BD=B5=D8=D5=F0=B4=F8 =BC=CD=C4=EE=E3=EB=B4=A8=B5=D8=D5=F0= =D2=BB=D6=DC=C4=EA ------=_Part_38817_32785127.1243393791074-- --===============0123354310== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0123354310==--