Subject: Re: Dom0 shutdown hangs
To: Ari Suutari <ari@suutari.iki.fi>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-xen
Date: 09/25/2006 12:39:15
On Mon, Sep 25, 2006 at 10:49:20AM +0300, Ari Suutari wrote:
> Hi,
> 
> >Manuel Bouyer wrote:
> >>On Fri, Sep 22, 2006 at 01:43:04PM +0300, Ari Suutari wrote:
> >>>Hi,
> >>>
> >>>I have a netbsd dom0 running 2 * netbsd domU and 1 * debian domU.
> >>>Ok so far, but when I execute shutdown -r on *dom0* (or just reboot)
> >>>it just hangs.
> >>
> >>Is it Xen2 or Xen3 ? Also do you have serial console ? If so,
> >>try '^A^A^A' (tree ^A in a row) and then 'q', and look at the result.
> >>You can reboot with 'R'.
> >
> 	The serial console says:
> (XEN) Domain0 shutdown: rebooting machine.
> 
> but nothing happens.... It doesn't respond to ctrl-a at
> this time neither.

Hum so Xen should have dome the reset, and has given up (or is actually
looping waiting for the CPU to reset). Maybe the dom0 kernel is doing
something to the hardware which prevents it from resetting but it's more
likely that the hypervisor it's doing the right thing to reset this
particular CPU/motherboard. You could try a newer hypervisor from
the 3.0-testing serie, from
http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/

> [...]
> evtchn_pending 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
> 0 0
> (XEN) 'R' pressed -> rebooting machine

And does it really reboot at this point ?

-- 
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
     NetBSD: 26 ans d'experience feront toujours la difference
--