From owner-freebsd-xen@freebsd.org Wed Dec 21 23:30:44 2016 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8E95C8BA1D for ; Wed, 21 Dec 2016 23:30:44 +0000 (UTC) (envelope-from 0100015923b8e2f4-689d4cb8-61d4-4634-8165-5a2c7bf537dd-000000@amazonses.com) Received: from a8-237.smtp-out.amazonses.com (a8-237.smtp-out.amazonses.com [54.240.8.237]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A05A9199E for ; Wed, 21 Dec 2016 23:30:44 +0000 (UTC) (envelope-from 0100015923b8e2f4-689d4cb8-61d4-4634-8165-5a2c7bf537dd-000000@amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=vnqrkfnvu6csdl6mwgk5t6ix3nnepx57; d=tarsnap.com; t=1482363036; h=Subject:To:References:Cc:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=mI09f6av3ZoejDxMqN0dZu0RbEh68sownzRn0eJcyhY=; b=WIt1jIjCYcAM5pzzveEdpt2zpjkj9l2seUAMErWnL9aeDP83udanyPFvNHYBTuWz IOq/+xcKYYelQ+pMrQCs0Gua0Mp/njea1JvoGCIuiHYnaOAbYEAiAlSUKDU4UBMAfTx R4+fL06qbqLjKTbEuWMB2LOpnKQAZPGHTCzakqe4= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1482363036; h=Subject:To:References:Cc:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=mI09f6av3ZoejDxMqN0dZu0RbEh68sownzRn0eJcyhY=; b=yVuLpxwJGoQ8nbKGPKMW5aqrU2d1onvNdChlLeTLRrrwglamFSh6z16M9fAletOy GazdLGNr1S1EXTHDP1MPN4eZ1+G1zdwAtkwJ6RXzUMDDNj8oo6xasYZq6K0hYT3/6Gr qXvlZ2g1WSTPMXNZkmW5HUMU9BWv57LoH8Xpzt44= Subject: Re: svn commit: r310177 - in head/sys: amd64/conf i386/conf To: FreeBSD Lists References: <201612162110.uBGLAbG3091898@repo.freebsd.org> Cc: John Baldwin From: Colin Percival Message-ID: <0100015923b8e2f4-689d4cb8-61d4-4634-8165-5a2c7bf537dd-000000@email.amazonses.com> Date: Wed, 21 Dec 2016 23:30:36 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 In-Reply-To: <201612162110.uBGLAbG3091898@repo.freebsd.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SES-Outgoing: 2016.12.21-54.240.8.237 Feedback-ID: 1.us-east-1.Lv9FVjaNvvR5llaqfLoOVbo2VxOELl7cjN0AOyXnPlk=:AmazonSES X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.23 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, 21 Dec 2016 23:30:44 -0000 This commit breaks the Xen boot: > panic: NULL pcpu device_t > cpuid = 0 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xffffffff82233a20 > vpanic() at vpanic+0x186/frame 0xffffffff82233aa0 > kassert_panic() at kassert_panic+0x126/frame 0xffffffff82233b10 > xen_setup_cpus() at xen_setup_cpus+0x5b/frame 0xffffffff82233b50 > mi_startup() at mi_startup+0x118/frame 0xffffffff82233b70 > btext() at btext+0x2c I'm assuming this means xenpvcpu_attach isn't running early enough; does anyone have time to track this down and fix it? On 12/16/16 13:10, John Baldwin wrote: > Author: jhb > Date: Fri Dec 16 21:10:37 2016 > New Revision: 310177 > URL: https://svnweb.freebsd.org/changeset/base/310177 > > Log: > Enable EARLY_AP_STARTUP on amd64 and i386 kernels by default. > > PR: 199321, 203682 > MFC after: 2 months > Sponsored by: Netflix > > Modified: > head/sys/amd64/conf/GENERIC > head/sys/amd64/conf/MINIMAL > head/sys/i386/conf/GENERIC > > Modified: head/sys/amd64/conf/GENERIC > ============================================================================== > --- head/sys/amd64/conf/GENERIC Fri Dec 16 20:49:50 2016 (r310176) > +++ head/sys/amd64/conf/GENERIC Fri Dec 16 21:10:37 2016 (r310177) > @@ -98,6 +98,7 @@ options MALLOC_DEBUG_MAXZONES=8 # Separ > # Make an SMP-capable kernel by default > options SMP # Symmetric MultiProcessor Kernel > options DEVICE_NUMA # I/O Device Affinity > +options EARLY_AP_STARTUP > > # CPU frequency control > device cpufreq > > Modified: head/sys/amd64/conf/MINIMAL > ============================================================================== > --- head/sys/amd64/conf/MINIMAL Fri Dec 16 20:49:50 2016 (r310176) > +++ head/sys/amd64/conf/MINIMAL Fri Dec 16 21:10:37 2016 (r310177) > @@ -94,6 +94,7 @@ options MALLOC_DEBUG_MAXZONES=8 # Separ > # Make an SMP-capable kernel by default > options SMP # Symmetric MultiProcessor Kernel > options DEVICE_NUMA # I/O Device Affinity > +options EARLY_AP_STARTUP > > # CPU frequency control > device cpufreq > > Modified: head/sys/i386/conf/GENERIC > ============================================================================== > --- head/sys/i386/conf/GENERIC Fri Dec 16 20:49:50 2016 (r310176) > +++ head/sys/i386/conf/GENERIC Fri Dec 16 21:10:37 2016 (r310177) > @@ -96,6 +96,7 @@ options MALLOC_DEBUG_MAXZONES=8 # Separ > # To make an SMP kernel, the next two lines are needed > options SMP # Symmetric MultiProcessor Kernel > device apic # I/O APIC > +options EARLY_AP_STARTUP > > # CPU frequency control > device cpufreq > > > -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid