From owner-freebsd-current@FreeBSD.ORG Tue Feb 17 20:27:00 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B6D368CB; Tue, 17 Feb 2015 20:27:00 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5A617E5F; Tue, 17 Feb 2015 20:27:00 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id t1HKQsTG016791 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 17 Feb 2015 22:26:54 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua t1HKQsTG016791 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id t1HKQrAR016790; Tue, 17 Feb 2015 22:26:53 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 17 Feb 2015 22:26:53 +0200 From: Konstantin Belousov To: sbruno@freebsd.org Subject: Re: Xen HVM Panic, HEAD Message-ID: <20150217202653.GW34251@kib.kiev.ua> References: <54E2BF1E.4090002@ignoranthack.me> <20150217085657.GR34251@kib.kiev.ua> <54E39DC4.4010802@ignoranthack.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54E39DC4.4010802@ignoranthack.me> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tom.home 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:27:00 -0000 On Tue, Feb 17, 2015 at 12:00:04PM -0800, Sean Bruno wrote: > -----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) > Please disassemble your ipi_startup, also please do 'p *apic_ops'.