From owner-freebsd-xen@FreeBSD.ORG Wed Mar 31 17:18:28 2010 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 8244B106566B for ; Wed, 31 Mar 2010 17:18:28 +0000 (UTC) (envelope-from w3.comete@gmail.com) Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mx1.freebsd.org (Postfix) with ESMTP id A4CE88FC12 for ; Wed, 31 Mar 2010 17:18:27 +0000 (UTC) Received: by bwz8 with SMTP id 8so259799bwz.3 for ; Wed, 31 Mar 2010 10:18:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:subject:date :message-id:mime-version:content-type:x-mailer:thread-index :content-language:x-cr-hashedpuzzle:x-cr-puzzleid; bh=z/lQU8sr+Df6n413yl5dbVxX5RJCzXqYAE+BjLgITuw=; b=wMpyYv+9pDK66pAz+7UEuuYKIt1tPQGAzonV9r+ZtN+tNhbjTdyZ+LN3wSYBjNgRE0 1HzdpUzir956QTrxC8ggfVIk0GYdGdlbBdZAnZwSpMw+mCqTECpMtksjWGuvxaGvDnUt SVP/xbiVeSfB9DCgt79w07zx3rcIZNp2Io/9E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:date:message-id:mime-version:content-type :x-mailer:thread-index:content-language:x-cr-hashedpuzzle :x-cr-puzzleid; b=d6+1EC1Xy+i09v70jSTYTVrDoxlcf/U78dosPnbYifiMIKHYSXkPqosN4e2VaVPuGv zTi7ItmSs8hep3H9gAp3L9Y5GRT02lX0nuWbUrR9e7B+r7/AIijthfDsKhLIQR33eiy+ RHgnWdOmCW7WkDeyKipE7lDhYscaPSWfSNd10= Received: by 10.204.48.144 with SMTP id r16mr3649005bkf.176.1270054197317; Wed, 31 Mar 2010 09:49:57 -0700 (PDT) Received: from OmegaLap ([62.160.90.245]) by mx.google.com with ESMTPS id 14sm3559272bwz.6.2010.03.31.09.49.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 31 Mar 2010 09:49:56 -0700 (PDT) Sender: Guillaume Seigneuret From: "Guillaume Seigneuret" To: Date: Wed, 31 Mar 2010 18:49:53 +0200 Message-ID: <00ba01cad0f2$30fed2f0$92fc78d0$@fr> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcrQ8i7MmeSaw3VsTQC9Z+ZWqM7zVg== Content-Language: fr x-cr-hashedpuzzle: AlkP Awbz A7Cq BUvz CjPQ Cmk1 Dti6 E9Zb FC3e Ff/p Gl75 Gm1d In6T Jm4B Jshb KQ+O; 1; ZgByAGUAZQBiAHMAZAAtAHgAZQBuAEAAZgByAGUAZQBiAHMAZAAuAG8AcgBnAA==; Sosha1_v1; 7; {52296040-2173-4784-B97E-056B80DDCE1F}; ZwBzAEAAbwBtAGUAZwBhAGMAdQBiAGUALgBmAHIA; Wed, 31 Mar 2010 16:49:51 GMT; WABlAG4AIAA4ACAAJgAgADkAIABEAG8AbQBVACAAawBlAHIAbgBlAGwAIABwAGEAbgBpAGMAIAB3AGkAdABoACAAMgAgAG8AcgAgAG0AbwByAGUAIAB2AGkAcgB0AHUAYQBsACAAQwBQAFUA x-cr-puzzleid: {52296040-2173-4784-B97E-056B80DDCE1F} Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Xen 8 & 9 DomU kernel panic with 2 or more virtual CPU 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: Wed, 31 Mar 2010 17:18:28 -0000 Dear all, When I try to make FreeBSD work in Xen domU with multiple vcups, I got a kernel panic. If someone have a clue . I got the following error : WARNING: loader(8) metadata is missing! GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2010 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: Tue Mar 23 20:38:17 CET 2010 drgkill@RedProxy2:/usr/obj/usr/src/sys/XEN i386 WARNING: WITNESS option enabled, expect reduced performance. Xen reported: 2526.982 MHz processor. Timecounter "ixen" frequency 1000000000 Hz quality 0 CPU: Intel(R) Xeon(R) CPU X3440 @ 2.53GHz (2526.98-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x106e5 Family = 6 Model = 1e Stepping = 5 Features=0xbfebfbff Features2=0x98e3fd AMD Features=0x28100000 AMD Features2=0x1 TSC: P-state invariant Data TLB: 4 KB pages, 4-way set associative, 64 entries 1st-level data cache: 32 KB, 8-way set associative, 64 byte line size L2 cache: 256 kbytes, 8-way associative, 64 bytes/line real memory = 536870912 (512 MB) Physical memory chunk(s): 0x00000000007f0000 - 0x000000001f638fff, 518295552 bytes (126537 pages) avail memory = 515362816 (491 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 nfslock: pseudo-device null: random: io: crypto: Grant table initialized xenbus0: on motherboard xc0: on motherboard kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x8 fault code = supervisor read, page not present instruction pointer = 0x21:0xc0389142 stack pointer = 0x29:0xc06c6ad8 frame pointer = 0x29:0xc06c6af0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 1, pres 1, def32 1, gran 1 processor eflags = resume, IOPL = 0 current process = 0 (swapper) [ thread pid 0 tid 100000 ] Stopped at intr_execute_handlers+0x12: movl 0x8(%ebx),%eax db> db> db> show alllocks Process 0 (kernel) thread 0xc044f430 (100000) exclusive sleep mutex Giant (Giant) r = 0 (0xc0450c50) locked @ /usr/src/sys/kern/kern_module.c:117 Or : Started domain RedProxy2 (id=23) WARNING: loader(8) metadata is missing! GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2010 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: Tue Mar 23 20:38:17 CET 2010 drgkill@RedProxy2:/usr/obj/usr/src/sys/XEN i386 WARNING: WITNESS option enabled, expect reduced performance. Xen reported: 2526.984 MHz processor. Timecounter "ixen" frequency 1000000000 Hz quality 0 CPU: Intel(R) Xeon(R) CPU X3440 @ 2.53GHz (2526.98-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x106e5 Family = 6 Model = 1e Stepping = 5 Features=0xbfebfbff Features2=0x98e3fd AMD Features=0x28100000 AMD Features2=0x1 TSC: P-state invariant Data TLB: 4 KB pages, 4-way set associative, 64 entries 1st-level data cache: 32 KB, 8-way set associative, 64 byte line size L2 cache: 256 kbytes, 8-way associative, 64 bytes/line real memory = 536870912 (512 MB) Physical memory chunk(s): 0x00000000007f0000 - 0x000000001f638fff, 518295552 bytes (126537 pages) avail memory = 515362816 (491 MB) APIC: Using the MPTable enumerator. SMP: Added CPU 0 (BSP) SMP: Added CPU 1 (AP) gdtpfn=219746 pdptpfn=5cc05 panic: HYPERVISOR_vcpu_op(VCPUOP_initialise, cpu, &ctxt): /usr/src/sys/i386/xen/mp_machdep.c:927 cpuid = 0 KDB: enter: panic Here are the kernel informations : uname -a FreeBSD RedProxy2 9.0-CURRENT FreeBSD 9.0-CURRENT Kernel conf : # # XEN -- Kernel configuration for i386 XEN DomU # # $FreeBSD: src/sys/i386/conf/XEN,v 1.13 2010/03/13 09:21:00 ed Exp $ cpu I686_CPU ident XEN makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols makeoptions MODULES_OVERRIDE="" options SCHED_ULE # ULE scheduler options PREEMPTION # Enable kernel thread preemption #options SCHED_4BSD options INET # InterNETworking options INET6 # IPv6 communications protocols options SCTP # Stream Control Transmission Protocol options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options UFS_GJOURNAL # Enable gjournal-based UFS journaling options NFSCLIENT # Network Filesystem Client options NFSSERVER # Network Filesystem Server options NFSLOCKD # Network Lock Manager options NFS_ROOT # NFS usable as /, requires NFSCLIENT options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS # Pseudo-filesystem framework options GEOM_PART_GPT # GUID Partition Tables. options GEOM_LABEL # Provides labelization options COMPAT_FREEBSD4 # Compatible with FreeBSD4 options COMPAT_FREEBSD5 # Compatible with FreeBSD5 options COMPAT_FREEBSD6 # Compatible with FreeBSD6 options COMPAT_FREEBSD7 # Compatible with FreeBSD7 options KTRACE # ktrace(1) support options STACK # stack(9) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options KBD_INSTALL_CDEV # install a CDEV entry in /dev options AUDIT # Security event auditing # Debugging for use in -current options KDB # Enable kernel debugger support. options DDB # Support DDB. options GDB # Support remote GDB. options DEADLKRES # Enable the deadlock resolver options INVARIANTS # Enable calls of extra sanity checking options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS options WITNESS # Enable checks to detect deadlocks and cycles options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed options PAE nooption NATIVE option XEN nodevice atpic nodevice isa options MCLSHIFT=12 # To make an SMP kernel, the next two lines are needed options SMP # Symmetric MultiProcessor Kernel device apic # I/O APIC #device atkbdc # AT keyboard controller #device atkbd # AT keyboard device psm # PS/2 mouse device pci #device kbdmux # keyboard multiplexer # Pseudo devices. device loop # Network loopback device random # Entropy device device ether # Ethernet support device tun # Packet tunnel. device pty # Pseudo-ttys (telnet etc) device md # Memory "disks" device gif # IPv6 and IPv4 tunneling device faith # IPv6-to-IPv4 relaying (translation) # The `bpf' device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! # Note that 'bpf' is required for DHCP. device bpf # Berkeley packet filter device pf device pfsync device pflog device carp option IPSEC option IPSEC_ESP device crypto options ALTQ options ALTQ_CBQ # Class Bases Queuing (CBQ) options ALTQ_RED # Random Early Detection (RED) options ALTQ_RIO # RED In/Out options ALTQ_HFSC # Hierarchical Packet Scheduler (HFSC) options ALTQ_PRIQ # Priority Queuing (PRIQ) options ALTQ_NOPCC # Required for SMP build Informations about the Xen domU : Xen 3.4 amd 64 with 2.6.32-3-xen-amd64 linux kernel. Thanks by advance. Regards, Guillaume Seigneuret