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] Re: xen boot crash

To: Christoph Egger <Christoph.Egger@xxxxxxx>
Subject: [Xen-devel] Re: xen boot crash
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Wed, 12 Jan 2011 14:37:50 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 12 Jan 2011 05:38:46 -0800
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1294839476; l=1053; s=domk; d=aepfle.de; h=In-Reply-To:Content-Type:MIME-Version:References:Subject:Cc:To:From: Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=H2OTgs5VgxhzMVLZPysT5R3PEjg=; b=QxjXHJ+U+NWH47PdZXHMKNncKeltA83ZmmuF2FokaKp6pA8IzkrCHq/Ej3NzTLUQfaO jX6PN4zq0SBQS6jTAwlqcwHL3A25t2hxyyQ6r3e6BC3OlDlwV9UH3Hlp3R12D7nm3dt2r lRn9q0Tl+ThphxJaKT/n5PNZMYyephH+Eho=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110112100141.GA14960@xxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <201101121045.06045.Christoph.Egger@xxxxxxx> <20110112100141.GA14960@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
On Wed, Jan 12, Olaf Hering wrote:

> On Wed, Jan 12, Christoph Egger wrote:
> 
> > 
> > Hi!
> > 
> > Changeset 22706:ca10302ac285  causes below boot crash.
> > Reverting it makes xen boot again.
> > 
> > The rip points to xen/common/page_alloc.c:543
> 
> Yes, that change was not well done. Sorry for that. I'm sure it doesnt
> crash if set_gpfn_from_mfn() is called from free_domheap_pages().
> 
> Looking at free_heap_pages(), now the page owner is cleared at the
> beginning of the loop. But later in the loop it is checked wether a TLB
> flush is required. So the set_gpfn_from_mfn() should be at least moved
> past this check. Even if that doesnt fix the crash you are seening.
> 
> I will see if I can come up with a better version.

It crashes in end_boot_allocator -> init_heap_pages -> free_heap_pages.
paging_init() initializes the machine_to_phys_mapping[] array, but its
called after end_boot_allocator().

As Keir said, there needs to be a more complete change for the
machine_to_phys_mapping[] array handling.

Olaf

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>