From owner-freebsd-xen@FreeBSD.ORG Tue Oct 6 10:00:43 2009 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFDA0106566B for ; Tue, 6 Oct 2009 10:00:43 +0000 (UTC) (envelope-from freebsd-xen@winnipeg.nl) Received: from mail.owl-ict.nl (mail.owl-ict.nl [80.69.76.80]) by mx1.freebsd.org (Postfix) with ESMTP id C02568FC19 for ; Tue, 6 Oct 2009 10:00:42 +0000 (UTC) Received: (qmail 14808 invoked by uid 89); 6 Oct 2009 09:33:59 -0000 Received: from uil.winnipeg.nl (HELO ?192.168.1.14?) (lotte@winnipeg.nl@83.161.204.37) by mail.owl-ict.nl with SMTP; 6 Oct 2009 11:33:59 +0200 Message-ID: <4ACB0F08.9080603@winnipeg.nl> Date: Tue, 06 Oct 2009 11:34:00 +0200 From: Lotte-Sara Laan User-Agent: Thunderbird 2.0.0.23 (X11/20090820) MIME-Version: 1.0 To: freebsd-xen@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: FreeBSD 8.0RC1 and CURRENT panics when trying to boot as xenU X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Oct 2009 10:00:43 -0000 I've send this email to the freebsd-current mailinglist, but I think this is a better place for it (-; --------------------- I'm trying to get FreeBSD working under Xen 3.4.1 using the Gentoo dom0 kernel 2.6.29.6 I downloaded and compiled the 8.0RC1 and the CURRENT svn version revision 197720 from http://svn.freebsd.org/base/head with the KERNCONF=XEN option but when I'm starting my domU I'm getting the following panic: 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 9.0-CURRENT #1 r197720: Sat Oct 3 14:09:31 CEST 2009 root@freebsd.winnipeg.nl:/usr/local/xen/current-obj/usr/src/sys/XEN-LOTJUH i386 WARNING: WITNESS option enabled, expect reduced performance. Xen reported: 2611.800 MHz processor. Timecounter "ixen" frequency 1000000000 Hz quality 0 CPU: AMD Phenom(tm) II X4 810 Processor (2611.80-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x100f42 Stepping = 2 Features=0x178bfbff Features2=0x802009 AMD Features=0xee500800 AMD Features2=0x37ff TSC: P-state invariant Data TLB: 48 entries, fully associative Instruction TLB: 32 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: 512 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative real memory = 1073741824 (1024 MB) Physical memory chunk(s): 0x00000000008ab000 - 0x000000003ecb2fff, 1044414464 bytes (254984 pages) avail memory = 1040429056 (992 MB) APIC: Using the MPTable enumerator. SMP: Added CPU 0 (BSP) SMP: Added CPU 1 (AP) SMP: Added CPU 2 (AP) SMP: Added CPU 3 (AP) panic: HYPERVISOR_update_va_mapping(((unsigned long)(va)), (pa | 0x002 | 0x001 | pgeflag | pmap_cache_bits(mode, 0)), UVMF_INVLPG| UVMF_ALL) < 0: /usr/src/sys/i386/xen/pmap.c:1269 cpuid = 0 KDB: enter: panic [thread pid 0 tid 0 ] Stopped at kdb_enter+0x3a: movl $0,kdb_why db> bt Tracing pid 0 tid 0 td 0xc03e10f0 kdb_enter(c03698a8,c03698a8,c038e3f1,c06f9cd4,0,...) at kdb_enter+0x3a panic(c038e3f1,c0396429,c0396207,4f5,0,...) at panic+0x136 pmap_mapdev_attr(0,0,100000,6,c06f9d44,...) at pmap_mapdev_attr+0x13d pmap_mapbios(0,0,100000,1,c03c946c,...) at pmap_mapbios+0x27 x86bios_intr(c36e4840,0,0,76,c0395e2b,...) at x86bios_intr+0x1b0 module_register_init(c03dbe88,3040800,3040800,6fe000,0,...) at module_register_init+0xa7 mi_startup(6fe000,0,0,0,0,...) at mi_startup+0x96 btext() at btext+0x95 db> I'm getting the same panic when I add only 1 cpu. And I've tried revision 197775 now as well which gives me exactly the same panic. I'm using the following boot line for pygrub: kernel /boot/kernel/kernel vfs.root.mountfrom=ufs:xbd0,kern.hz=100,kern.smp.disabled=1,boot_verbose=1,boot_single=1 I've tried it with and without the kern.smp.disabled option And for 8.0RC1 I get: 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-RC1 #0: Fri Oct 2 22:05:22 CEST 2009 root@freebsd.winnipeg.nl:/usr/local/xen/obj-xenbro2/usr/src/sys/XEN-LOTJUH WARNING: WITNESS option enabled, expect reduced performance. Xen reported: 2611.800 MHz processor. Timecounter "ixen" frequency 1000000000 Hz quality 0 CPU: AMD Phenom(tm) II X4 810 Processor (2611.80-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x100f42 Stepping = 2 Features=0x178bfbff Features2=0x802009 AMD Features=0xee500800 AMD Features2=0x37ff TSC: P-state invariant Data TLB: 48 entries, fully associative Instruction TLB: 32 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: 512 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative real memory = 1073741824 (1024 MB) Physical memory chunk(s): 0x0000000000899000 - 0x000000003ecb2fff, 1044488192 bytes (255002 pages) avail memory = 1040502784 (992 MB) APIC: Using the MPTable enumerator. SMP: Added CPU 0 (BSP) ULE: setup cpu 0 [XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0) [XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1) Event-channel device installed. mem: Pentium Pro MTRR support enabled null: nfslock: pseudo-device random: kbd0 at kbdmux0 io: Grant table initialized xenbus0: on motherboard xc0: on motherboard [XEN] xen_rtc_probe: probing Hypervisor RTC clock rtc0: on motherboard [XEN] xen_rtc_attach: attaching Hypervisor RTC clock rtc0: registered as a time-of-day clock (resolution 1000000us) npx0: INT 16 interface Device configuration finished. procfs registered Timecounters tick every 10.000 msec kernel trap 9 with interrupts disabled Fatal trap 9: general protection fault whilelo0: bpf attached in kernel mode cpuid = 0; apic id = 00 instruction pointer = 0x21:0xc0320011 stack pointer = 0x29:0xc35c6ca0 frame pointer = 0x29:0xc35c6ca8 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 1, pres 1, def32 1, gran 1 processor eflags = resume, IOPL = 0 [XEN] hypervisor wallclock nudged; nudging TOD. [thread pid 11 tid 100003 ] Stopped at spinlock_enter+0x91: hlt db> bt Tracing pid 11 tid 100003 td 0xc3708b40 spinlock_enter(1,c35c6cf8,c00fb6fe,1,0,...) at spinlock_enter+0x91 cpu_idle(1,0,c035f75b,9e9,c3708b40,...) at cpu_idle+0x12 sched_idletd(0,c35c6d38,c035909c,343,c3706aa0,...) at sched_idletd+0x23e fork_exit(c00fb4c0,0,c35c6d38) at fork_exit+0xb8 fork_trampoline() at fork_trampoline+0x8 --- trap 0, eip = 0, esp = 0xc35c6d70, ebp = 0 --- db> Does anyone have any ideas about what's going wrong? Lotte-Sara Laan