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] EFI Mapping Windows Install Crash Bug

To: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Subject: Re: [Xen-ia64-devel] EFI Mapping Windows Install Crash Bug
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Thu, 3 Jul 2008 22:59:00 +1000
Cc: Yutaka Ezaki <yutaka.ezaki@xxxxxxxxxxxxxx>, Alex Williamson <alex.williamson@xxxxxx>, xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 03 Jul 2008 05:59:07 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20080703122731.GA17895%yamahata@xxxxxxxxxxxxx>
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/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20080701070753.GB3521%yamahata@xxxxxxxxxxxxx> <20080701073440.GB14334@xxxxxxxxxxxx> <20080701110416.GD3521%yamahata@xxxxxxxxxxxxx> <20080701112026.GB4770@xxxxxxxxxxxx> <20080701121924.GF3521%yamahata@xxxxxxxxxxxxx> <20080702062031.GA4545@xxxxxxxxxxxx> <20080702105327.GF9677%yamahata@xxxxxxxxxxxxx> <20080702112144.GA5338@xxxxxxxxxxxx> <20080703105054.GA31500@xxxxxxxxxxxx> <20080703122731.GA17895%yamahata@xxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
On Thu, Jul 03, 2008 at 09:27:31PM +0900, Isaku Yamahata wrote:
> On Thu, Jul 03, 2008 at 08:50:56PM +1000, Simon Horman wrote:
> > Hi,
> > 
> > I have been looking over the SAL manual and looking into where
> > exactly the lockup that I am seeing occurs.
> > 
> > What seems to happen is this.
> > 
> > If ia64_mca_cpe_int_caller() is called from vmx context (is that the
> > right word?) then when it calls ia64_log_queue() which in turn calls
> > ia64_sal_get_state_info() then as the SAL_GET_STATE_INFO call is being
> > made (I'm pretty sure that it is inside the firmware)
> > ia64_mca_ucmc_handler() is invoked. I presume that this is because an
> > unrecoverable machine check occurs during the SAL_GET_STATE_INFO call.
> > 
> > The call to ia64_mca_ucmc_handler() seems to complete successfully
> > (including a call to ia64_sal_get_state_info() via ia64_log_queue()).
> > Just after that the hypervisor locks up, presumably because execution
> > goes back to the original SAL_GET_STATE_INFO call that caused the
> > unrecoverable machine check.
> > 
> > With regards to rr7. It is not set to EFI RR when entering
> > ia64_mca_cpe_int_caller(), but it is when entering
> > ia64_mca_ucmc_handler(), which makes sense, as it should be set when
> > going into the first SAL_GET_STATE_INFO call.
> 
> That's great.
> Table 9-2 SAL spec says that SAL_GET_STATE_INFO is NOT reentrant,
> the above explains why the hypervisor locks up.

I see, good point.

> > My latest micro-hack involves having ia64_sal_get_state_info() return 0,
> > without going into SAL, if VMX_DOMAIN(current) is true, which seems to
> > work.
> > 
> > I will ponder the SAL manual some more to try and work out why
> > EFI RR + VMX (+ IRQ?) + SAL_GET_STATE_INFO -> bad
> 
> Yes, now the next question is why the mca occurs and
> whether it can/should be avoided.

Yes, I agree. That is the question I need to investigate.

> Is it possible to determine what mca occurs?
> The mca record might be in nvram, if so there should be a way
> to retrieve them.

Good idea, I will check tomorrow.

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