Subject: NetBSD/Xen-amd64 Dom0 crashes
To: None <port-xen@netbsd.org>
From: Christoph Egger <Christoph_Egger@gmx.de>
List: port-xen
Date: 02/01/2008 15:30:47
Hi!

When I try to boot NetBSD/Xen-amd64 Dom0, then I get this crash:

(XEN) domain_crash_sync called from entry.S
(XEN) Domain 0 (vcpu#0) crashed on cpu#0:
(XEN) ----[ Xen-3.3-unstable  x86_64  debug=y  Tainted:    C ]----
(XEN) CPU:    0
(XEN) RIP:    e033:[<ffffffff804a776f>]
(XEN) RFLAGS: 0000000000010246   CONTEXT: guest
(XEN) rax: ffffa0000123d050   rbx: ffffa0000123d000   rcx: ffffa000259ca028
(XEN) rdx: ffffa000259ca038   rsi: ffffa000259ca020   rdi: ffffffff80b4b680
(XEN) rbp: ffffa000259ca010   rsp: ffffa000259c9fc0   r8:  ffffffff80b01840
(XEN) r9:  0000000000000201   r10: 000000000000002a   r11: ffffffff804d1010
(XEN) r12: ffffa0002413e000   r13: ffffffff80b4b680   r14: ffffa000259ca0a0
(XEN) r15: 0000000000000096   cr0: 000000008005003b   cr4: 00000000000006f0
(XEN) cr3: 000000011bd46000   cr2: ffffa000259c9ff0
(XEN) ds: 0013   es: 0013   fs: 0000   gs: 0000   ss: e02b   cs: e033
(XEN) Guest stack trace from rsp=ffffa000259c9fc0:
(XEN)   Fault while accessing guest memory.
(XEN) Debugging connection not set up.
(XEN) Domain 0 crashed: rebooting machine in 5 seconds.

The kernel image is there:

(XEN)  Xen  kernel: 64-bit, lsb, compat32
(XEN)  Dom0 kernel: 64-bit, lsb, paddr 0xffffffff80100000 -> 
0xffffffff80b571d8
(XEN)  Dom0 symbol map 0xffffffff80b571d8 -> 0xffffffff80c44a68

The RIP is outside of the kernel's .text section, so something is going very 
wrong here.


This is the boot message:

Loaded initial symtab at 0xffffffff80b571dc, strtab at 0xffffffff80be68f8, # 
entries 24372
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 4.99.52 (XEN3_DOM0) #1: Fri Feb  1 17:16:39 CET 2008
        
root@tulln.amd.com:/netbsd32/usr/src/current/sys/arch/amd64/compile/XEN3_DOM0
total memory = 512 MB
avail memory = 480 MB
SMBIOS rev. 2.4 @ 0xf0750 (54 entries)
mainbus0 (root)
pmap_kenter_pa: pa 0x0 for va 0xffffa00023ded000 outside range
pmap_kenter_pa: pa 0x9f000 for va 0xffffa00023ded000 outside range
mainbus0: scanning 0x9fc00 to 0x9fff0 for MP signature
pmap_kenter_pa: pa 0x8d000 for va 0xffffa00023ded000 outside range
mainbus0: scanning 0x8d400 to 0x8d7f0 for MP signature
pmap_kenter_pa: pa 0xf0000 for va 0xffffa00023ded000 outside range
pmap_kenter_pa: pa 0xf1000 for va 0xffffa00023dee000 outside range
pmap_kenter_pa: pa 0xf2000 for va 0xffffa00023def000 outside range
pmap_kenter_pa: pa 0xf3000 for va 0xffffa00023df0000 outside range
pmap_kenter_pa: pa 0xf4000 for va 0xffffa00023df1000 outside range
pmap_kenter_pa: pa 0xf5000 for va 0xffffa00023df2000 outside range
pmap_kenter_pa: pa 0xf6000 for va 0xffffa00023df3000 outside range
pmap_kenter_pa: pa 0xf7000 for va 0xffffa00023df4000 outside range
pmap_kenter_pa: pa 0xf8000 for va 0xffffa00023df5000 outside range
pmap_kenter_pa: pa 0xf9000 for va 0xffffa00023df6000 outside range
pmap_kenter_pa: pa 0xfa000 for va 0xffffa00023df7000 outside range
pmap_kenter_pa: pa 0xfb000 for va 0xffffa00023df8000 outside range
pmap_kenter_pa: pa 0xfc000 for va 0xffffa00023df9000 outside range
pmap_kenter_pa: pa 0xfd000 for va 0xffffa00023dfa000 outside range
pmap_kenter_pa: pa 0xfe000 for va 0xffffa00023dfb000 outside range
pmap_kenter_pa: pa 0xff000 for va 0xffffa00023dfc000 outside range
mainbus0: scanning 0xf0000 to 0xffff0 for MP signature
pmap_kenter_pa: pa 0xff000 for va 0xffffa00023ded000 outside range
mainbus0: MP floating pointer found in bios at 0xff780
pmap_kenter_pa: pa 0xf1000 for va 0xffffa00023dee000 outside range
pmap_kenter_pa: pa 0xf1000 for va 0xffffa00023dee000 outside range
mainbus0: MP config table at 0xf11a0, 1372 bytes long
cpu0 at mainbus0 apid 0: (boot processor)
cpu1 at mainbus0 apid 1: (application processor)
ioapic0 at mainbus0 apid 2, virtual wire mode
(XEN) io_apic.c:2133: 
(XEN) ioapic_guest_write: apic=0, pin=2, old_irq=0, new_irq=-1
(XEN) ioapic_guest_write: old_entry=000009f0, new_entry=00010900
(XEN) ioapic_guest_write: Attempt to remove IO-APIC pin of in-use IRQ!
(XEN) io_apic.c:2133: 
(XEN) ioapic_guest_write: apic=0, pin=4, old_irq=4, new_irq=-1
(XEN) ioapic_guest_write: old_entry=000009f1, new_entry=00010900
(XEN) ioapic_guest_write: Attempt to remove IO-APIC pin of in-use IRQ!
ioapic1 at mainbus0 apid 3, virtual wire mode
hypervisor0 at mainbus0
vcpu0 at hypervisor0: (uniprocessor)
vcpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4800+, 2399.73 MHz
vcpu0: 16 page colors
xenbus0 at hypervisor0: Xen Virtual Bus Interface
xencons0 at hypervisor0: Xen Virtual Console Driver
acpi0 at hypervisor0: Advanced Configuration and Power Interface
[...]
cd0 at atapibus0 drive 1: <LITE-ON DVD SHD-16P1S, , GS05> cdrom removable
wd0 at atabus4 drive 0: <WDC WD400BB-22JHC0>
wd0: 38166 MB, 77545 cyl, 16 head, 63 sec, 512 bytes/sect x 78165360 sectors
Searching for RAID components...
boot device: <unknown>
root device: ex0
dump device: 
file system (default generic): 
root on ex0
mountroot: trying lfs...
mountroot: trying ffs...
mountroot: trying ext2fs...
mountroot: trying nfs...
nfs_boot: trying static
nfs_boot: client_addr=192.168.85.12
nfs_boot: gateway=192.168.85.254
nfs_boot: netmask=192.168.85.0
nfs_boot: server=192.168.85.14
nfs_boot: root=192.168.85.14:/nfsroot/netbsd-amd64-fricka-cegger
root on 192.168.85.14:/nfsroot/netbsd-amd64-fricka-cegger
root time: 0x47a32ad9
root file system type: nfs
warning: no /dev/console
init path (default /sbin/init): 
init: copying out path `/sbin/init' 11


Christoph