Subject: Panic with NetBSD 3.0 XENU
To: None <port-xen@netbsd.org>
From: Felipe Alfaro Solana <felipe.alfaro@gmail.com>
List: port-xen
Date: 04/16/2006 21:52:34
Hi,

I'm trying to install NetBSD 3.0 as a domainU guest under Xen, using
instructions from http://wiki.xensource.com/xenwiki/NetBSDdomU and
kernels from http://mail-index.netbsd.org/port-xen/2006/03/20/0000.html.

When trying to start up the NetBSD guest, the kernel panics:

# xm create -c netbsd
...
hypervisor0 at mainbus0
debug virtual interrupt using event channel 3
xenbus0 at hypervisor0: Xen Virtual Bus Interface
xenbus0: using event channel 1
xencons0 at hypervisor0: Xen Virtual Console Driver
xencons0: console major 143, unit 0
xencons0: using event channel 2
npx0 at hypervisor0: using exception 16
Xen clock: using event channel 4
raidattach: Asked for 8 units
Kernelized RAIDframe activated
md0: internal 5000 KB image area
panic: HYPERVISOR_mmu_update failed

Stopped in pid 0.1 (swapper) at netbsd:cpu_Debugger+0x4:        leave
db> trace
cpu_Debugger(c0746c20,7ff0,0,c07c8cec,c0227903) at netbsd:cpu_Debugger+0x4
panic(c02558c3,0,ca35e63,c9707d0,c07c8d58) at netbsd:panic+0x10f
xpq_flush_queue(0,c07c8d24,c01a872a,1,1) at netbsd:xpq_flush_queue+0x3b
pmap_enter_ma(c0761c60,ca1f4000,ca35000,7fae000,7) at netbsd:pmap_enter_ma+=
0x6b1

pmap_enter(c0761c60,ca1f4000,7fae000,7,37) at netbsd:pmap_enter+0x50
uvm_fault_internal(c0742ce0,ca1f4000,7,1,ca20bef4) at netbsd:uvm_fault_inte=
rnal+
0xbd7
uvm_fault_wire(c0742ce0,ca1f4000,ca1f8000,3,0) at netbsd:uvm_fault_wire+0x2=
e
uvm_lwp_fork(c075ec80,ca20bef4,0,0,c01b39a2) at netbsd:uvm_lwp_fork+0x4b
newlwp(c075ec80,ca202d00,ca1f4000,0,0) at netbsd:newlwp+0xa0
fork1(c075ec80,0,14,0,0) at netbsd:fork1+0x3dc
main(0,0,0,0,0) at netbsd:main+0x174

This is my domain config file:

name =3D 'netbsd'
memory =3D '128'
disk =3D [ 'file:/root/NetBSD,0x3,w' ]
vif =3D [ 'mac=3DAA:BB:CC:DD:EE:FF' ]
kernel =3D '/root/netbsd-INSTALL_XEN3_U'
ip =3D 'a.b.c.d'
netmask =3D 'x.x.x.x'
gateway =3D 'd.e.f.g'

I'm running a Xen Fedora Core 5 domain0, upgraded to RawHide (xen-3.0.1-4).
Any ideas?
Thanks!