From owner-freebsd-current@FreeBSD.ORG Mon May 18 04:54:31 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9D6F106567F for ; Mon, 18 May 2009 04:54:31 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qy0-f173.google.com (mail-qy0-f173.google.com [209.85.221.173]) by mx1.freebsd.org (Postfix) with ESMTP id 91D568FC0A for ; Mon, 18 May 2009 04:54:31 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by qyk3 with SMTP id 3so5411652qyk.3 for ; Sun, 17 May 2009 21:54:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=nWOac4TjGqCwXI49fcYGioRZzpknEuEXHYfDrU2aJgg=; b=AdSqapCtbMpe8Bcv11Zz7XBUWwwui4LTsIvAdtdG4hWfpOUljP7FqJ6UCjJ5w5uvEE jncnUcdNQCuPNU5jDQ20tYdr6Q9gE2O78cVegXbvrGEHYIsqRrlA18+3FE5ODceBriNr d70a4pxbZ4GMA7IK+V+1igKR1LuTBqrqdSyj0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=EUtzNvhIO4AgaBay21tkmm3eibxkh68aEqZbDJuaWqpH5Z8E6muXr0EotQsglc2Oqe 6DjwailXVuABzKZKrtPOWUBL695FXhhFbLpwon94/s6n6CMW22nlSzVyJE8rPCNnGe0D UxVkcRfQfvZDfdLk3p2+oQjmycF3AI3PhP3R8= MIME-Version: 1.0 Sender: adrian.chadd@gmail.com Received: by 10.229.96.10 with SMTP id f10mr2883228qcn.72.1242622470955; Sun, 17 May 2009 21:54:30 -0700 (PDT) In-Reply-To: References: Date: Mon, 18 May 2009 12:54:30 +0800 X-Google-Sender-Auth: 1843df3804de6968 Message-ID: From: Adrian Chadd To: freebsd-current Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: Xen/FreeBSD-current issues X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2009 04:54:32 -0000 fwiw, this was due a bad merge which reverted the previously committed fix for this. FreeBSD-current Xen now seems to basically function. Adrian 2009/5/17 Adrian Chadd : > 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 > AMD Features=0xc0400800 > 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: > kbd0 at kbdmux0 > mem: > Pentium Pro MTRR support enabled > nfslock: pseudo-device > null: > io: > Grant table initialized > xenbus0: on motherboard > xc0: on motherboard > npx0: INT 16 interface > Device configuration finished. > procfs registered > Timecounters tick every 10.000 msec > lo0: bpf attached > xbd0: 10240MB at device/vbd/768 on xenbus0 > xbd0: attaching as ad0 > GEOM: new disk ad0 > xn0: 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] >