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

Re: [Xen-devel] problems with recursively mapping page directory as a pa

To: Kip Macy <kmacy@xxxxxxxxxxx>, Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] problems with recursively mapping page directory as a page table
From: Christian Limpach <chris@xxxxxx>
Date: Mon, 23 Feb 2004 14:15:47 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 23 Feb 2004 13:21:14 +0000
Envelope-to: steven.hand@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <E1Av1IY-0007Jf-00@xxxxxxxxxxxxxxxxxxxx> <20040222153215.G84871@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> The following code:
>     /* install a pde recursively mapping page directory as a page table */
>     FILLKPT(IdlePTD, PTDPTDI, 1, IdlePTD, L2_PROT_RO);
>
> Which basically sets IdlePTD[PTDPTDI] = IdlePTD | LT_PROT_RO appears to
> be causing the error below. Any thoughts?
>
> (file=/u/kmacy/xen/xeno-unstable.bk.home/xen/include/xeno/mm.h,line=243)
Unexpected type (saw 40000000 != exp 20000000) for pfDOM0:
> (file=memory.c, line=339) Bad page type for pfn 0001228d (40000001)

I think it's not an error:  get_page_from_l2e first tries to validate the PD
entry as a regular PD entry (i.e. the page it points to should be an L1
pagetable page, PGT_l1_page_table type) and if this fails, it tries to
validate it as a linear pagetable mapping (the page it points to should be
an L2 pagetable page, PGT_l2_page_table type).  You could add a test around
the warnings to check for this condition and then not output the warnings.

    christian



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel