Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756520AbcDDVcJ (ORCPT ); Mon, 4 Apr 2016 17:32:09 -0400 Received: from mail-oi0-f54.google.com ([209.85.218.54]:35572 "EHLO mail-oi0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753665AbcDDVcH (ORCPT ); Mon, 4 Apr 2016 17:32:07 -0400 MIME-Version: 1.0 In-Reply-To: <20160404193803.GK351@pd.tnic> References: <4085070316fc3ab29538d3fcfe282648d1d4ee2e.1459605520.git.luto@kernel.org> <20160402183919.GA2538@pd.tnic> <20160402204752.GC2538@pd.tnic> <20160404115206.GG8372@quack.suse.cz> <20160404160042.GB3448@twins.programming.kicks-ass.net> <20160404193803.GK351@pd.tnic> From: Andy Lutomirski Date: Mon, 4 Apr 2016 14:31:46 -0700 Message-ID: Subject: Re: [PATCH v5 3/9] x86/head: Move early exception panic code into early_fixup_exception To: Borislav Petkov Cc: Peter Zijlstra , Jan Kara , Paolo Bonzini , xen-devel , Arjan van de Ven , X86 ML , Andrew Morton , Petr Mladek , KVM list , "linux-kernel@vger.kernel.org" , Linus Torvalds Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1082 Lines: 30 On Mon, Apr 4, 2016 at 12:38 PM, Borislav Petkov wrote: > On Mon, Apr 04, 2016 at 06:00:42PM +0200, Peter Zijlstra wrote: >> On Mon, Apr 04, 2016 at 08:32:21AM -0700, Andy Lutomirski wrote: >> >> > Adding locking would be easy enough, wouldn't it? >> >> See patch in this thread.. >> >> > But do any platforms really boot a second CPU before switching to real >> > printk? >> >> I _only_ use early_printk() as printk() is a quagmire of fail :-) > > And since I'm the king of minimalistic changes... this below > works. However, the problem is that we need to pull up all that > early_param parsing in order to enable the early console, i.e. > "earlyprintk=ttyS0,115200" cmdline parsing. > > And we can do all that after having setup the IDT. So I'd need to do > some early dancing with cmdline_find_option_bool(boot_command_line, ... > in asm or so. Need to think about it more. > I'd be nervous about moving early param parsing, especially as part of the same patch. Could you do it by moving just the earlyprintk stuff a la fpu__init_parse_early_param()? --Andy