Subject: Re: Dom0 shutdown hangs
To: None <port-xen@NetBSD.org>
From: Ari Suutari <ari@suutari.iki.fi>
List: port-xen
Date: 09/25/2006 10:49:20
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.

When the system is running using ctrl-a to get back to xen
works and 'q' followed by 'R' gives following output:
NetBSD/i386 (netxen.syncrontech.com) (console)

login: (XEN) *** Serial input -> Xen (type 'CTRL-a' three times to switch input to DOM0).
(XEN) 'q' pressed -> dumping domain info (now=0xA:691CEE43)
(XEN) General information for domain 0:
(XEN)     flags=1 refcnt=3 nr_pages=32000 xenheap_pages=5 dirty_cpus={0}
(XEN)     handle=00000000-0000-0000-0000-000000000000
(XEN) Rangesets belonging to domain 0:
(XEN)     Interrupts { 0-255 }
(XEN)     I/O Memory { 0-ffffffff }
(XEN)     I/O Ports  { 0-1f, 22-3f, 44-60, 62-9f, a2-3f7, 400-ffff }
(XEN) Memory pages belonging to domain 0:
(XEN)     DomPage list too long to display
(XEN)     XenPage 001bc000: mfn=000001bc, caf=80000002, taf=f0000002
(XEN)     XenPage 001bd000: mfn=000001bd, caf=80000002, taf=f0000002
(XEN)     XenPage 001be000: mfn=000001be, caf=80000002, taf=f0000002
(XEN)     XenPage 001bf000: mfn=000001bf, caf=80000002, taf=f0000002
(XEN)     XenPage 001bb000: mfn=000001bb, caf=80000002, taf=f0000002
(XEN) VCPU information and callbacks for domain 0:
(XEN)     VCPU0: CPU0 [has=F] flags=17 upcall_pend = 00, upcall_mask = 00 dirty_cpus={0} cpu_affinity={0-31}
(XEN)     Notifying guest (virq 1, port 1, stat 0/0/0)
debug event
ci_ilevel 0x0 ci_ipending 0x0 ci_idepth 0
evtchn_upcall_pending 0 evtchn_upcall_mask 1 evtchn_pending_sel 0x0
evtchn_mask ffffc403 ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff 
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
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


I tried also putting "noapic" and "noacpi" to menu.lst but it didn't help.

	Ari S.