WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] what's the purpose of line page table (PML4 entry 258)

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] what's the purpose of line page table (PML4 entry 258)
From: weiming <zephyr.zhao@xxxxxxxxx>
Date: Sun, 30 Mar 2008 23:41:59 -0700
Delivery-date: Sun, 30 Mar 2008 23:42:21 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=NtjqencPvF+ScY7/AQrSpZFsXd2zPehM4HkozCv5QeA=; b=B8HQVY/w6iEssm4ZBwC+zfhPqcWj5BWHDHNTCVND0ZmpKajKVpkLMB2qeW2K9aIOpYn2PaqvwULflrWgozpj2zQqihqTV3nIb+GzRfZJwOi5LhKp0ktfWkQT+yOgakupOmWjeKIPywwHFIK9gRCacHzdBvoWmpjOhbIhtU8wYCE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type; b=fU521KF5IQRUyZuhKnpPVPOatuHYRuJCfpJt6dRdqIRAzWLU7G5eR7CBkcUV95dF2kw6EK6xi06lCHBcMIjADsEPZaWp1YKbDKuFbzW3tcgoS/Z3bNgu/vr/lISxvgPzAGqIeMaZuZJKXhRtifwlhgnRsGxJqMG73VG7kM5S818=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] what's the purpose of line page table (PML4 entry 258), weiming <=