From: "Tom Creck" Subject: When to emulate writing page table page and when to do_update_va_mapping()? Date: Thu, 3 Jul 2008 14:33:11 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0020366316==" Return-path: Content-Language: zh-cn 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 --===============0020366316== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0077_01C8DD19.B841F3B0" Content-Language: zh-cn ------=_NextPart_000_0077_01C8DD19.B841F3B0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello, everyone: I know that x86_emulate_memop() is used to emulate writing to page table pages as Xen intentionally write protect page table pages. Also, the hypercall Hypervisor_update_va_mapping() -> mod_l2/l1_entry() is also used to modify page table pages. So I get confused about their difference. My questions are: (1) When are the above two routines of modifying page table pages invoked respectively? (2) What's the difference in functionality among the two? Best Wishes Tom ------=_NextPart_000_0077_01C8DD19.B841F3B0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello, = everyone:

 

         I know that x86_emulate_memop() is used to emulate writing to page table = pages as Xen intentionally write protect page table = pages.

         Also, the hypercall Hypervisor_update_va_mapping() -> = mod_l2/l1_entry() is also used to modify page table pages.

         So I get confused about their difference. My questions = are:

 

(1)     When are the above two = routines of modifying page table pages invoked = respectively?

(2)     What’s the = difference in functionality among the two?

 

Best = Wishes

Tom

 

 

------=_NextPart_000_0077_01C8DD19.B841F3B0-- --===============0020366316== 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 --===============0020366316==--