Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 May 2009 18:27:57 +0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Xen/FreeBSD-current issues
Message-ID:  <d763ac660905170327o69b4f756we9a1910236870a3e@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I've managed to build up a basic install of FreeBSD-current from
yesterday under Xen.

The kernel unfortunately panics on startup when the network interface
is probed; it boots to completion fine when no interface is configured
in the Xen config file.

Configuration file:

kernel = "/home/adrian/xen/kernel.current"
memory = 256
name = "freebsd"
vif = [ 'mac=00:bd:c4:12:00:ef,bridge=xenbr0' ]
disk = [ 'phy:/dev/hosting2_data2/XEN_freebsd,hda,w' ]
on_crash  = 'preserve'
extra = "boot_verbose=1"
extra += ",vfs.root.mountfrom=ufs:/dev/ad0s1a"
extra += ",kern.hz=100"


Dmesg and stuff follows:

[root@hosting-2 xen]# xm console freebsd
WARNING: loader(8) metadata is missing!
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2009 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.0-CURRENT #0: Sun May 17 09:43:08 UTC 2009
    adrian@agnus.home.cacheboy.net:/home/adrian/work/freebsd/xen/obj/home/adrian/work/freebsd/xen/src/sys/XEN
WARNING: WITNESS option enabled, expect reduced performance.
Xen reported: 1674.429 MHz processor.
Timecounter "ixen" frequency 1000000000 Hz quality 0
CPU: AMD Athlon(tm) XP 2000+ (1674.43-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x662  Stepping = 2
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0400800<SYSCALL,MMX+,3DNow!+,3DNow!>
Data TLB: 32 entries, fully associative
Instruction TLB: 16 entries, fully associative
L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L2 internal cache: 256 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative
real memory  = 268435456 (256 MB)
Physical memory chunk(s):
0x00000000006aa000 - 0x000000000fb3bfff, 256450560 bytes (62610 pages)
avail memory = 254377984 (242 MB)
APIC: Using the MPTable enumerator.
SMP: Added CPU 0 (BSP)
ULE: setup cpu 0
cpu=0 irq=0 vector=0
cpu=0 irq=0 vector=1
Event-channel device installed.
random: <entropy source, Software, Yarrow>
kbd0 at kbdmux0
mem: <memory>
Pentium Pro MTRR support enabled
nfslock: pseudo-device
null: <null device, zero device>
io: <I/O>
Grant table initialized
xenbus0: <Xen Devices> on motherboard
xc0: <Xen Console> on motherboard
npx0: INT 16 interface
Device configuration finished.
procfs registered
Timecounters tick every 10.000 msec
lo0: bpf attached
xbd0: 10240MB <Virtual Block Device> at device/vbd/768 on xenbus0
xbd0: attaching as ad0
GEOM: new disk ad0
xn0: <Virtual Network Interface> at device/vif/0 on xenbus0
xn0: bpf attached
xn0: Ethernet address: 00:bd:c4:12:00:ef
WARNING: WITNESS option enabled, expect reduced performance.
flowtable cleaner started
Kernel page fault with the following non-sleepable locks held:
exclusive sleep mutex xennetif_rx (network receive lock) r = 0
(0xc18580b4) locked @
/home/adrian/work/freebsd/xen/src/sys/dev/xen/netfront/netfront.c:1123
KDB: stack backtrace:
X_db_sym_numargs(c035ef81,cbe5daf0,c0111b25,c038262f,463,...) at
X_db_sym_numargs+0x146
kdb_backtrace(c038262f,463,ffffffff,c05104fc,cbe5db28,...) at kdb_backtrace+0x29
witness_display_spinlock(c03613ca,cbe5db3c,4,1,0,...) at
witness_display_spinlock+0x75
witness_warn(5,0,c038acd6,c17d8b00,c,...) at witness_warn+0x1fd
trap(cbe5dbc4) at trap+0x13e
alltraps(c1858000,cbe5dcc8,c00c3854,c03d4200,c175a738,...) at alltraps+0x1b
intr_event_execute_handlers(c17097ec,c175a700,c03577af,4dd,c175a770,...)
at intr_event_execute_handlers+0x125
intr_event_add_handler(c1768490,cbe5dd38,c03574ec,336,c17097ec,...) at
intr_event_add_handler+0x41f
fork_exit(c00afd10,c1768490,cbe5dd38) at fork_exit+0xb8
fork_trampoline() at fork_trampoline+0x8
--- trap 0, eip = 0, esp = 0xcbe5dd70, ebp = 0 ---


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x0
fault code              = supervisor write, page not present
instruction pointer     = 0x21:0xc0301037
stack pointer           = 0x29:0xcbe5dc04
frame pointer           = 0x29:0xcbe5dca0
code segment            = base 0x0, limit 0xf67ff, type 0x1b
                        = DPL 1, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 12 (irq134: xn)
[thread pid 12 tid 100023 ]
Stopped at      xlvbd_add+0x3747:       movl    %edx,0(%esi)
db> xccncheckc:155
 xccncheckc:155


bt:

Tracing pid 12 tid 100023 td 0xc175b000
xlvbd_add(c1858000,cbe5dcc8,c00c3854,c03d4200,c175a738,...) at xlvbd_add+0x3747
intr_event_execute_handlers(c17097ec,c175a700,c03577af,4dd,c175a770,...)
at intr_event_execute_handlers+0x125
intr_event_add_handler(c1768490,cbe5dd38,c03574ec,336,c17097ec,...) at
intr_event_add_handler+0x41f
fork_exit(c00afd10,c1768490,cbe5dd38) at fork_exit+0xb8
fork_trampoline() at fork_trampoline+0x8
--- trap 0, eip = 0, esp = 0xcbe5dd70, ebp = 0 ---

ps:

 pid  ppid  pgrp   uid   state   wmesg     wchan    cmd
   20     0     0     0  SL      flowclea 0xc03d00e4 [flowcleaner]
   19     0     0     0  SL      sdflush  0xc05484e0 [softdepflush]
   18     0     0     0  SL      vlruwt   0xc18867ec [vnlru]
   17     0     0     0  SL      syncer   0xc053c750 [syncer]
   16     0     0     0  SL      psleep   0xc053c488 [bufdaemon]
    9     0     0     0  SL      pgzero   0xc0549164 [pagezero]
    8     0     0     0  SL      psleep   0xc0548d3c [vmdaemon]
    7     0     0     0  SL      psleep   0xc0548d04 [pagedaemon]
    6     0     0     0  SL      waiting_ 0xc053e5bc [sctp_iterator]
    5     0     0     0  SL      balloon  0xc02fc590 [balloon]
   15     0     0     0  SL      xbread   0xc0621000 [xenbus]
   14     0     0     0  SL      waitev   0xc054c000 [xenwatch]
   13     0     0     0  SL      -        0xc03d00e4 [yarrow]
    4     0     0     0  SL      -        0xc03cdea4 [g_down]
    3     0     0     0  SL      -        0xc03cdea0 [g_up]
    2     0     0     0  RL                          [g_event]
   12     0     0     0  RL      (threaded)          intr
100023                   Run     CPU 0               [irq134: xn]
100022                   I                           [irq133: xbd]
xccncheckc:155
100019                   I                           [irq131: xencons]
xccncheckc:155
100016                   I                           [irq130: xenbus]
100015                   I                           [swi6: Giant taskq]
100013                   I                           [swi5: +]
100011                   I                           [swi6: task queue]
100006                   I                           [swi3: vm]
100005                   I                           [swi1: net]
100004                   I                           [swi4: clock]
   11     0     0     0  RL                          [idle: cpu0]
    1     0     0     0  SL      g_waitid 0xc03cdde4 [kernel]
   10     0     0     0  SL      audit_wo 0xc0547e80 [audit]
    0     0     0     0  SLs     (threaded)          kernel
100014                   D       -        0xc1747c80 [thread taskq]
100012                   D       -        0xc1747d40 [kqueue taskq]
100000                   D       sched    0xc03cdf40 [swapper]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d763ac660905170327o69b4f756we9a1910236870a3e>