Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp1252416rdb; Wed, 16 Aug 2023 06:27:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFtzhN4PsxSd5EY2yXu8OTxSKEQtriFb32rs1ApFfi/rxAWq1AHMCqoWIO4ebYkkee4ksFm X-Received: by 2002:a05:6a00:1994:b0:687:ffac:c62e with SMTP id d20-20020a056a00199400b00687ffacc62emr7418603pfl.3.1692192420788; Wed, 16 Aug 2023 06:27:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692192420; cv=none; d=google.com; s=arc-20160816; b=iHFdAcS1j956qyE6rGEhZLAexgDUnPjhAizpekJGULqKfDp9TzaeMcrLaRYOSWSpDg BJtc60dw6M9KnAlZPWLbMQbX08HDwikoFBdbpqRsByywuNg6vF6UQZqT5pwWjwyyUFFW hsAC2VG5zrR6ZpsgJHw7uZX2PK2Ypu8/O+SSsyDypLpaiBK792xyvAcNvPdjVIIzdBTt You3NT0pEvdcBogMzYdpk3wBZE5bd/NGldsDeAdMhGNXSobZrEh40Zn5KMnQdPiP4lFI 5tXf9z7+DEjWDZaXAAXbsexCbBwFzvFS75jQap6R8ZhbE7ToEpvb5zeVhPQSRleKQJSo 8ulw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=PaaaRJ88pAh6QvTF6BgB0yJWtocqWOgZDpEHWj3YHpo=; fh=1ISLCFNSQop6oMCgnPwLGIUS7xO8iOf5Ou5/XXAIgxE=; b=XaX20jJgxk1L5BBMPihZR3exr/0fPn+TaD9TqPylNIOqj+9L4x0lVNGcJRf0wnuoeC tJi4JDNfNAOGW5x/at3w8uRUH8HPorVjPoLL2kOIcJd+fTvbzofx9OtkqVNbraW/ayUf oq7KZkALFhs3lhPHNSjd5PSYCUNeRPeQlEHvfffwTtp/LRIH50moL7pbaM9a+U+sDdos h/mQv0qky/a1d0UzE2vQBKuG5SEK57i97XJs0qvMkvpDXZryDagEk81KmNgTjmpQTvaW wE+wffsR42Uc9DCXoCl+s88t9KFnAql+zHQm9B4qyNeoKGdtZ9pxeL3C5bkX8nOSo/Bz 6wzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (expired) header.i=@joshtriplett.org header.s=fm3 header.b=Vk1XMBMm; dkim=neutral (expired) header.i=@messagingengine.com header.s=fm1 header.b=ZLaIsJnq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g14-20020a056a000b8e00b0065addb172d1si2191489pfj.380.2023.08.16.06.26.46; Wed, 16 Aug 2023 06:27:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=neutral (expired) header.i=@joshtriplett.org header.s=fm3 header.b=Vk1XMBMm; dkim=neutral (expired) header.i=@messagingengine.com header.s=fm1 header.b=ZLaIsJnq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232684AbjHNVCQ (ORCPT + 99 others); Mon, 14 Aug 2023 17:02:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232889AbjHNVCK (ORCPT ); Mon, 14 Aug 2023 17:02:10 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 918CD19BE for ; Mon, 14 Aug 2023 14:01:46 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 77B855C0052; Mon, 14 Aug 2023 17:01:12 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 14 Aug 2023 17:01:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= joshtriplett.org; h=cc:cc:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1692046872; x=1692133272; bh=PaaaRJ88pAh6QvTF6BgB0yJWtocqWOgZDpE HWj3YHpo=; b=Vk1XMBMmLgIplOz5+pHFOaOmA7bV6WXtSXTVJNGQbpLhODD3128 wLiuRY1D+L4ar9Bae3vvYZPuV2x/ofRzBa3stBJ45EFw4JWlJVSzrLCSDYw35lhp 6KMcOhdYErZmM/QwOYE+lJ8+Vm/TFnjDcTmaXpKim5CJ5hsgdKIU2ylNlvbRK4BS H5kqgB/IKD8o1YFSDMpFtxXXGNGCgcfcjXnmlJJCT8yLy0e0i2N78BAZCH2DPxOH lxq8jirX87vvdLaUTSpiBcoOkRTBoUC5fVEiHjsypLxr68yYw1lZvr3ol6kaqJRU LVKomyWUDP0F83dprj+mxdg3lemM130+C6g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1692046872; x=1692133272; bh=PaaaRJ88pAh6Q vTF6BgB0yJWtocqWOgZDpEHWj3YHpo=; b=ZLaIsJnqzXhgs83O4IMjnqtrEX/pz NkzXVqCbQxGitK4Jhj6VSCQszAGHNrrmCybD6mDvVFuRb3t4j2F/3jQ9dErcbmHE leb/exVO8//ePqRP7pjEejdvz34wm3isK6VI/737N+EzT8PPSAgD6kHn0Ri3Z7Mu dWzAQTJZCjOBGmWLHjnfFLmQ92w9r7bCJX6mpmg8JxJNjdOsQ032tDZq38u1KlEe 2DoAiyUXpiKUKxcXejySez7WRf9sNgTzdDY+K+Go3VH4c5DQHJNfewk4HRJ61v4T mpeRYvQ3GrNfuU2uY/daHmlG1h6IOlYpTU6aUxBPt229F3ksorxu7m4BA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedruddthedgvdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheplfhoshhh ucfvrhhiphhlvghtthcuoehjohhshhesjhhoshhhthhrihhplhgvthhtrdhorhhgqeenuc ggtffrrghtthgvrhhnpeduieegheeijeeuvdetudefvedtjeefgeeufefghfekgfelfeet teelvddtffetgfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehjohhshhesjhhoshhhthhrihhplhgvthhtrdhorhhg X-ME-Proxy: Feedback-ID: i83e94755:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 14 Aug 2023 17:01:07 -0400 (EDT) Date: Mon, 14 Aug 2023 14:01:03 -0700 From: Josh Triplett To: Thomas Gleixner Cc: LKML , x86@kernel.org, Borislav Petkov , Ashok Raj , Arjan van de Ven , Nikolay Borisov Subject: Re: [patch V2 02/37] x86/microcode: Hide the config knob Message-ID: References: <20230812194003.682298127@linutronix.de> <20230812195727.660453052@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230812195727.660453052@linutronix.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 12, 2023 at 09:58:39PM +0200, Thomas Gleixner wrote: > In reality CONFIG_MICROCODE is enabled in any reasonable configuration when > Intel or AMD support is enabled. Accomodate to reality. > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -1308,44 +1308,8 @@ config X86_REBOOTFIXUPS > Say N otherwise. > > config MICROCODE > - bool "CPU microcode loading support" > - default y > + def_bool y There is one completely reasonable configuration that does not need or want CONFIG_MICROCODE: a kernel configured to run *exclusively* in a virtual machine, with no support for booting on physical hardware. Would it retain an excessive amount of complexity to support omitting this code in that use case? (Doesn't have to eliminate *every last bit* of support code; just hoping to eliminate as much as easily possible without adding non-trivial complexity.) I'd be happy to help keep this case building. Would you consider accepting a patch atop this series re-introducing minimal support for disabling this? (I am all for eliminating the added complexity of the separately configurable knobs for CONFIG_MICROCODE_INTEL and CONFIG_MICROCODE_AMD, and just having those be unconditionally enabled if CONFIG_MICROCODE is.)