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] Xen dom0 crash in get_phys_to_machine

To: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>
Subject: Re: [Xen-devel] Xen dom0 crash in get_phys_to_machine
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Fri, 22 Oct 2010 15:26:32 -0700
Cc: "Alan J. Wylie" <NDA5OWUy@xxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Jeremy, Fitzhardinge <Jeremy.Fitzhardinge@xxxxxxxxxx>
Delivery-date: Fri, 22 Oct 2010 15:28:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1287752727.12843.4406.camel@xxxxxxxxxxxxxxxxxxxxxx>
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: <19636.5260.149513.257699@xxxxxxxxxxx> <1287752727.12843.4406.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Lightning/1.0b3pre Thunderbird/3.1.4
 On 10/22/2010 06:05 AM, Gianni Tedesco wrote:
> On Tue, 2010-10-12 at 08:55 +0100, Alan J. Wylie wrote:
>> Further to my previous report:
>>
>> http://lists.xensource.com/archives/html/xen-devel/2010-10/msg00257.html
>> Message-ID: <19629.39326.337589.71778@xxxxxxxxxxx>
>>
>> I've added some debugging and have tracked down the crash to the
>> recently modified code in arch/x86/xen/mmu.c
>>
>> Since the last version of the code that worked for me, mmu.c has been
>> modified with a lot of P2M changes. It now crashes in
>> get_phys_to_machine().
>>
>> Having tracked down the crash and the offending value of pfn, I then
>> further modified the code only to print if ( pfn == 0x18C3 ), and also
>> to print intermediate values.
>>
>> <7>ALANW get_phys_to_machine pfn 000018C3
>> <7> topidx 00000000
>> <7> mididx 0000000C
>> <7> idx 000000C3
>> (XEN) d0:v0: unhandled page fault (ec=0000)
>>
>> If there is any more debugging that I can do, I'll be only too happy to
>> oblige.
> FWIW, when I was checking for any call where pfn > max_pfn - and I got:
>
>   p2m_top[0][10][104] max_pfn=0
>
> The p2m seems to have been correctly initialised:
>
>  xen_build_dynamic_phys_to_machine: topidx=0 mididx=375 max_pfn=192512
>
> But then it looks like something is trampling max_pfn and possibly other
> important data structures.
>
> I can get a working pvops dom0 by reverting to commit
> e6b9b2cbca5093e8e38d3e314e2f6415ad951c60 - with the same config.
>
> git-bisect between that commit and head turned up some nonsense about a
> ata_piix change which just added a spinlock
> 876b3a81850fc237f643a065ea78ce2ad7665767 - so I assume that is a bisect
> problem and that this commit is unrelated...

Yeah.  If the problem appears as a function of kernel size, then
bisection is going to give you more or less random results, unfortunately.

    J

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