Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1166040ybe; Fri, 6 Sep 2019 12:56:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIj8FzgqwTEPdnmrvz6uId/KKkZ8T0SMosSgEaUFS3O27wW/i+e1k3fDsx24l3bvLws0m4 X-Received: by 2002:a65:6817:: with SMTP id l23mr9537469pgt.46.1567799768733; Fri, 06 Sep 2019 12:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567799768; cv=none; d=google.com; s=arc-20160816; b=nlxsxb4nkzawUKjVWl7BNgNicBWR8U9NWvg9jHiPPdPPKYFbyyDk72fVh+GvYskLCd IrG2GROc7ZqfGDX8XoRw47Pv+q2fTp17vrj1lE4udftWnGgcChfWXvWQppwjWckFpKss zmQk5fdDLkmOwgOXgRCDFbhMzPMHB3gUOq/rz1V+pXZXgtxhnqpgWKya9piTXy2hoy9a Y61wTNyVc97WcFOoba0wrtovgoT+uzH/H/OQ6KlcmQktP1d0csrtwYOEE+WTZymH0B59 c7ZqhI1jJ21NrbjqVetNJc2NrZ9RLyAnwDvQis1+DlIwpifS9I47vx8dL10VlKQR3kga 1D6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xtqqJP9qgOBqusRl0nB2ylpdvT7PGPaJczjzdM0nC58=; b=UamgAQcHH5Ifi7bsvgVUkXgC6pL2uQxaIDaidTf+C41E8u1P3qN7YGQAMSJz4oA/Ne R4MGiSc5NOdjoVC2iWWRmQm7znLXFg3ZKy/iM8Wp9lO+SqdHEv93Kgiu9ByNTfaw6ciJ 7MpMp+YKUSL59yrei73dZXhX7FXlOTrCKe8yWAVs4QEyq5skVdL/xBcvhWAFZ9wfNbLU Ma6NwvelA/mU0MFbpnm1+qt2y4EqxwZA9iAMI3iiCBo6or7SWrS4uMVdm95+iWVVPhGV iUf0aj36JP16VfihUIbineStJo+j4eLBTHTg4+NIlLJoZMV91CpbIGlynDI1qYD/DUlV ir0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=TyjZRjF9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1si5638896pld.177.2019.09.06.12.55.53; Fri, 06 Sep 2019 12:56:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=TyjZRjF9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389846AbfIFPQZ (ORCPT + 99 others); Fri, 6 Sep 2019 11:16:25 -0400 Received: from mail.skyhub.de ([5.9.137.197]:45194 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731375AbfIFPQY (ORCPT ); Fri, 6 Sep 2019 11:16:24 -0400 Received: from zn.tnic (p200300EC2F0B9E0090E54EFB2576D755.dip0.t-ipconnect.de [IPv6:2003:ec:2f0b:9e00:90e5:4efb:2576:d755]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 7B6161EC026F; Fri, 6 Sep 2019 17:16:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1567782983; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=xtqqJP9qgOBqusRl0nB2ylpdvT7PGPaJczjzdM0nC58=; b=TyjZRjF9IFxnR3mLOuVc73dRHgCkt9gn6f+hrix7Wf4Vv7Jpanf1by6D5bS8QezcDS8cZS kmN/qrwhiLlxazxvl7KAHMl/2g4sPkiv6S0ZYxEX3jUx5/rRIWJLi9drAgYOzU+3BxOl+U W91XaLuRZ6nfh6NKa/2ve90/8bcsVL0= Date: Fri, 6 Sep 2019 17:16:17 +0200 From: Borislav Petkov To: Johannes Erdfelt Cc: Thomas Gleixner , "Raj, Ashok" , Boris Ostrovsky , Mihai Carabas , "H. Peter Anvin" , Ingo Molnar , Jon Grimm , kanth.ghatraju@oracle.com, konrad.wilk@oracle.com, patrick.colp@oracle.com, Tom Lendacky , x86-ml , linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/microcode: Add an option to reload microcode even if revision is unchanged Message-ID: <20190906151617.GE19008@zn.tnic> References: <20190903164630.GF11641@zn.tnic> <41cee473-321c-2758-032a-ccf0f01359dc@oracle.com> <20190905002132.GA26568@otc-nc-03> <20190905072029.GB19246@zn.tnic> <20190905194044.GA3663@otc-nc-03> <20190905222706.GA4422@otc-nc-03> <20190906144039.GA29569@sventech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190906144039.GA29569@sventech.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 06, 2019 at 07:40:39AM -0700, Johannes Erdfelt wrote: > You say that switching of CPU feature bits is problematic, but adding > new features should result only in a warning ("x86/CPU: CPU features > have changed after loading microcode, but might not take effect."). That's the only sane thing we can do ATM - warn the user to reboot. > Removing a CPU feature bit could be problematic. Other than HLE being > removed on Haswell (which the kernel shouldn't use anyway), have there > been any other cases? I hope there aren't. There are cases, however, where late loading cannot fix an issue, like paging on some old Atoms. And then you *must* do early loading or stick it in the BIOS. But we all know how the latter works in practice. > I ask because we have successfully used late microcode loading on tens > of thousands of hosts. How do you deal with all the mitigations microcode loaded late? > I'm a bit worried to see that there is a push to remove a feature that > we currently rely on. I'd love to remove it. And the fact that people rely on it more instead of fixing their infrastructure to reboot machines and do early microcode updates is making it worse. Microcode update should be batched with kernel updates and that's it. They happen normally once-twice per year - except the last two years but the last two years are not normal anyway - and done. No need to do some crazy CPUID features reloading dances in the kernel and making sure cores will see the updated paths and so on. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette