From: weiming Subject: what's the purpose of line page table (PML4 entry 258) Date: Sun, 30 Mar 2008 23:41:59 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1615237886==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org --===============1615237886== Content-Type: multipart/alternative; boundary="----=_Part_2902_6753250.1206945719275" ------=_Part_2902_6753250.1206945719275 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, When I read the code of do_update_va_mapping, I find that it update the pte entry in the line page table by looking up the line page table via guest_map_l1e() : 2998 int do_update_va_mapping (unsigned long va, u64 val64, 2999 unsigned long flags ) 3000 { 3001 l1_pgentry_t val = l1e_from_intpte (val64); 3002 struct vcpu *v = current ; 3003 struct domain *d = v ->domain ; 3004 l1_pgentry_t *pl1e; 3005 unsigned long vmask, bmap_ptr, gl1mfn; 3006 cpumask_t pmask; 3007 int rc = 0; 3008 3009 perfc_incr (calls_to_update_va); 3010 3011 if ( unlikely (!__addr_ok (va) && !paging_mode_external (d)) ) 3012 return -EINVAL ; 3013 3014 rc = xsm_update_va_mapping (current ->domain , val ); 3015 if ( rc ) 3016 return rc ; 3017 3018 LOCK_BIGLOCK (d); 3019 3020 pl1e = guest_map_l1e (v , va, &gl1mfn); ... ... what's the purpose of this table? Thanks ------=_Part_2902_6753250.1206945719275 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,

When I read the code of do_update_va_mapping, I find that it update the pte entry in the line page table by looking up the line page table via guest_map_l1e() :

2998 int do_update_va_mapping(unsigned long va, u64 val64,
2999 unsigned long flags)
3000 {
3001 l1_pgentry_t val = l1e_from_intpte(val64);
3002 struct vcpu *v = current;
3003 struct domain *d = v->domain;
3004 l1_pgentry_t *pl1e;
3005 unsigned long vmask, bmap_ptr, gl1mfn;
3006 cpumask_t pmask;
3007 int rc = 0;
3008
3009 perfc_incr(calls_to_update_va);
3010
3011 if ( unlikely(!__addr_ok(va) && !paging_mode_external(d)) )
3012 return -EINVAL;
3013
3014 rc = xsm_update_va_mapping(current->domain, val);
3015 if ( rc )
3016 return rc;
3017
3018 LOCK_BIGLOCK(d);
3019
3020 pl1e = guest_map_l1e(v, va, &gl1mfn);
...
...


what's the purpose of this table?

Thanks
------=_Part_2902_6753250.1206945719275-- --===============1615237886== 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 --===============1615237886==--