Re: Xen HVM Panic, HEAD

From: Konstantin Belousov <kostikbel_at_gmail.com>
Date: Tue, 17 Feb 2015 22:26:53 +0200
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  _at_ 2.40GHz (2400.05-MHz K8-class
> >> CPU) Origin="GenuineIntel"  Id=0x206c2  Family=0x6  Model=0x2c
> >> Stepping=2 
> >> Features=0x1783fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2,HTT>
> >>
> >> 
> Features2=0x81ba2201<SSE3,SSSE3,CX16,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,TSCDLT,HV>
> >> AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM> AMD
> >> Features2=0x1<LAHF> Hypervisor: Origin = "XenVMMXenVMM" real
> >> memory  = 1434451968 (1368 MB) avail memory = 1353293824 (1290
> >> MB) Event timer "LAPIC" quality 400 ACPI APIC Table: <Xen HVM> 
> >> 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'.
Received on Tue Feb 17 2015 - 19:27:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:55 UTC