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-ia64-devel

Re: [Xen-ia64-devel] Bug in domain.c:construct_dom0()

To: Haavard Bjerke <havard.bjerke@xxxxxxx>
Subject: Re: [Xen-ia64-devel] Bug in domain.c:construct_dom0()
From: Matt Chapman <matthewc@xxxxxxxxxxxxxxx>
Date: Sat, 4 Jun 2005 01:53:46 +1000
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 03 Jun 2005 15:53:08 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20050603154234.GL15896@xxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: DIscussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20050603154234.GL15896@xxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6+20040523i
Haavard,

I just worked around this in my tree yesterday (are you looking at
getting event channels working too?)... the problem is that shared_info
goes over a page boundary and thereby corrupts the domain structure,
if you reduce MAX_VIRT_CPUS it will fix the problem.

Matt


On Fri, Jun 03, 2005 at 05:42:34PM +0200, Haavard Bjerke wrote:
> In construct_dom0(), the variable d->event_channel[0].state is changed from 1 
> to 0, and this shouldn't happen.
> 
> This happens in these lines:
> 
> /* Mask all upcalls... */
> for ( i = 0; i < MAX_VIRT_CPUS; i++ )
>     d->shared_info->vcpu_data[i].evtchn_upcall_mask = 1;
> 
> 
> Adding this line before and after will show that d->event_channel[0].state is 
> changed:
> 
> printk("construct_dom0(): domain_id: %d, port: %d, state %d\n", d->domain_id, 
> 0, d->event_channel[0].state);
> 
> Note that I haven't pulled for a while, but I will do that shortly and notify 
> if things are better.
> 
> Håvard
> 
> _______________________________________________
> Xen-ia64-devel mailing list
> Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-ia64-devel

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

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