From owner-freebsd-current@FreeBSD.ORG Tue Feb 17 20:00:13 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9DE6DE5D; Tue, 17 Feb 2015 20:00:13 +0000 (UTC) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 69434B21; Tue, 17 Feb 2015 20:00:12 +0000 (UTC) Received: from [192.168.200.212] (unknown [50.136.155.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id CE503192A3B; Tue, 17 Feb 2015 20:00:05 +0000 (UTC) Message-ID: <54E39DC4.4010802@ignoranthack.me> Date: Tue, 17 Feb 2015 12:00:04 -0800 From: Sean Bruno Reply-To: sbruno@freebsd.org User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: kib@freebsd.org Subject: Re: Xen HVM Panic, HEAD References: <54E2BF1E.4090002@ignoranthack.me> <20150217085657.GR34251@kib.kiev.ua> In-Reply-To: <20150217085657.GR34251@kib.kiev.ua> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: FreeBSD CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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: Tue, 17 Feb 2015 20:00:13 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 02/17/15 00:56, Konstantin Belousov wrote: > On Mon, Feb 16, 2015 at 08:10:06PM -0800, Sean Bruno wrote: >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 >> >> https://people.freebsd.org/~sbruno/Xen_APIC_panic.png >> >> I suspect that there may be one or two more lines above this that >> are relevant to this panic, but XENHVM kernel's now panic booting >> on Xen server. The working kernel output looks like this: >> >> FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) >> 20140512 XEN: Hypervisor version 4.2 detected. CPU: Intel(R) >> Xeon(R) CPU E5620 @ 2.40GHz (2400.05-MHz K8-class >> CPU) Origin="GenuineIntel" Id=0x206c2 Family=0x6 Model=0x2c >> Stepping=2 >> Features=0x1783fbff >> >> Features2=0x81ba2201 >> AMD Features=0x28100800 AMD >> Features2=0x1 Hypervisor: Origin = "XenVMMXenVMM" real >> memory = 1434451968 (1368 MB) avail memory = 1353293824 (1290 >> MB) Event timer "LAPIC" quality 400 ACPI APIC Table: >> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: >> 1 package(s) x 2 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC >> ID: 2 ioapic0: Changing APIC ID to 1 MADT: Forcing active-low >> polarity and level trigger for SCI > I am not sure why your machine uses native lapic instead of xen > lapic, and should it be other way, or not. > > Regardless, show the line number for the ipi_startup+0x56. Did you > performed clean kernel build ? > > I have rebuilt a kernel/world based on head at svn r276627. I have delete /usr/obj completely and started from scratch. Updated kernelpanic image at https://people.freebsd.org/~sbruno/Xen_APIC_panic.png /usr/src/sys/x86/include # kgdb /boot/kernel/kernel GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"... (kgdb) list *(ipi_startup+0x56) 0xffffffff80e088c6 is in ipi_startup (apicvar.h:383). 378 379 static inline int 380 lapic_ipi_wait(int delay) 381 { 382 383 return (apic_ops.ipi_wait(delay)); 384 } 385 386 static inline int 387 lapic_set_lvt_mask(u_int apic_id, u_int lvt, u_char masked) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJU453BXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5k9PcH/07PKefR3xkJT0W10i2xHYcp 5jNoVfPCP+crWcP7OOqfLY9aQr3KDx5GDZtb/nMbQ36YfCfB5LwAX0cJcGqVbAby LeznkBqzHa/KPl5RtHtQKPGi25YVm6Q+3mDbH/eGN9DcYwpuNyGrwd7J08XAioux 8UIMCzSy57GlUwMdr6EMOUIP8Uz5Fhm4cryTBhMgAzdIoXnTGIdG1jpatwvXQmtx dFH3c+vDlJdo3eqA34kufw3yENEjvOd10SVmw1RVs4KJX8pcTJMxRZs4VbayEAFb V/2FlunDsWnKGm8ybPXrUzSkGgKlQsmaM+gPRiUNpSc9tncnekX9YxqEt36UEJM= =n5pr -----END PGP SIGNATURE-----