From: Manuel Bouyer Subject: Re: xen 3.1.2: can't unpin bootstrap page Date: Mon, 3 Dec 2007 22:30:11 +0100 Message-ID: <20071203213011.GA17985@asim.lip6.fr> References: <20071203181243.GA29813@asim.lip6.fr> <20071203204436.GA2257@asim.lip6.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="KsGdsel6WgEHnImy" Return-path: Content-Disposition: inline In-Reply-To: <20071203204436.GA2257@asim.lip6.fr> 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 --KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Dec 03, 2007 at 09:44:36PM +0100, Manuel Bouyer wrote: > I tracked it down to an entry in the L4 page provided by Xen: > slot 0 has 0x3e3bf063 in it, which isn't even in the domains's memory range. > Trying to clear this entry from the dom0 kernel leads to the same hypervisor > panic. It seems this entry comes from the idle_pg_table page. Clearing the user slots in construct_dom0() fixes it for me, I can again load a NetBSD kernel as dom0. See the attached patch -- Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr NetBSD: 26 ans d'experience feront toujours la difference -- --KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-cy $NetBSD: patch-bd,v 1.1 2007/08/17 17:26:05 bouyer Exp $ --- xen/arch/x86/domain_build.c.orig 2007-12-03 21:59:10.000000000 +0100 +++ xen/arch/x86/domain_build.c 2007-12-03 22:01:57.000000000 +0100 @@ -768,6 +768,10 @@ l1start = l1tab = l2e_to_l1e(*l2tab); } } + /* make sure remaining entries are clear */ + l4tab = l4start; + for ( count = 0; count < ROOT_PAGETABLE_FIRST_XEN_SLOT; count++) + l4tab[count].l4 = 0; #endif /* __x86_64__ */ --KsGdsel6WgEHnImy 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 --KsGdsel6WgEHnImy--