From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753180AbcGYSTX (ORCPT ); Mon, 25 Jul 2016 14:19:23 -0400 Received: from mail.skyhub.de ([78.46.96.112]:60717 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751036AbcGYSTV (ORCPT ); Mon, 25 Jul 2016 14:19:21 -0400 Date: Mon, 25 Jul 2016 20:18:41 +0200 From: Borislav Petkov To: Nicolai Stange Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arch/x86/kernel/cpu/microcode/intel: don't store initrd's start Message-ID: <20160725181841.GB22704@nazgul.tnic> References: <20160724150549.2833-1-nicstange@gmail.com> <20160725070648.GB24576@nazgul.tnic> <87bn1m5auo.fsf@gmail.com> <20160725123643.GE4901@nazgul.tnic> <871t2hkh4w.fsf@gmail.com> <20160725134453.GB18535@nazgul.tnic> <87shuxiz06.fsf@gmail.com> <20160725164602.GC11976@nazgul.tnic> <871t2hd34l.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <871t2hd34l.fsf@gmail.com> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 25, 2016 at 07:44:10PM +0200, Nicolai Stange wrote: > Boots fine and updates microcode (as always, on top of next-20160722). Thanks! > Now that you've got basically the same #ifdefery Are you saying one #ifdef in my version is the same as at least 7 #if* lines in yours? Jeez. > and if(->valid)'s in your final result as I did, Your get_ucode_offset() thing is called three times. That function is also ugly as it gets a bool just to test it and return early if it is false. I have the valid test only once for the builtin case. > may I ask whether you would still consider it as being simpler? You're joking, right? Your diffstat: 1 file changed, 44 insertions(+), 21 deletions(-) My diffstat: 1 file changed, 14 insertions(+), 2 deletions(-) Along with the reasons above. > In particular, what's the point of having that ->start if it's > redundant and has to be corrected in a more or less hackish way > anyway? You must be kidding right? Yours returns start too. Let me break it to ya: we need start. And now let me break to you the ultimate reason why: the less intrusive/big/complex the patch, the less problems I have. Because next time the microcode loader breaks, it won't be *you* picking up the pieces. Got that? -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. --