Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp538472rdf; Tue, 21 Nov 2023 09:09:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IG91WpGF6ZCX/BddL8Az7FTeBLEcApkxgdFzyM7gATNSdhS+KVj6XZonPas2pMBJxyoPOtr X-Received: by 2002:a17:902:8302:b0:1cc:2456:c17a with SMTP id bd2-20020a170902830200b001cc2456c17amr8672276plb.33.1700586598081; Tue, 21 Nov 2023 09:09:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700586598; cv=none; d=google.com; s=arc-20160816; b=EoKj1R+GS9Fm+V86gqkV1cs2vyi3wB4UVryqHYVcPwzqRRsckJEhyp2Ocm7CD0ZxS1 n/pxD4zBhiMUFpKEztGp+RVjX0LKGslcsjsiWC5vrionETeQgjtZAVsoozXK8ihST/rn En9RZXWHNUKut7DS5oNHtup/WNKGYUxMlEiUllAC0oMPLrOvP14CHR60Pzf4+GIQzXIB rBQdCyyhSJSgxm+9UolNKAUfnkDgTkwjY99v1xwcQyPskaAckBGSyXUotIObPd9vOn1r 7l/40uwnosMVMQph7UXQopG46AeJ0rIUhbC8SdomQtYc36G1AMtHUhXXsGIoj15O5fm0 hckQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=BK/o7l9NMuaWGloqnE/Ke+uB0ZlAw9+itU85K74C1+I=; fh=Z5jXuzkmn3l7IHBxliTKwNO/8Yh7AhmQojunj9pzw+k=; b=N3cFsYFIue5/T+7s3kIzAnTgdANNl0RGcUKuI5FZCAJcNPRlw03PlhLloXXKswoxwF y3Sz19WeBKo/t5IjFvZ5Q0//L7GH4y9dE7UUcTuz0nQZwKMmRifek7/pK0nnpJB1p141 z+bBgNb/sXo2PSCELHZFEPA5a3WpU21Db1FOlKWSWR5kdM8kx6It9C4+rDka5AXqVNiI zm8bZ85AIXNa8lXdit24sZiyUHwz1tQ6dlm0UZbdyfL5tLytiBl+dup+eyRQXkpIVQHU kjSv9EFZEos1Pn919uBdcx+f4XU+NssW7Rkrgy7J/tI+2vZRiLx5DwLNaI3a+s6GsqJf hAeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id f21-20020a170902e99500b001c9dfd47959si10304901plb.602.2023.11.21.09.09.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 09:09:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B8E11801D144; Tue, 21 Nov 2023 09:09:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233952AbjKURJx (ORCPT + 99 others); Tue, 21 Nov 2023 12:09:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230340AbjKURJv (ORCPT ); Tue, 21 Nov 2023 12:09:51 -0500 Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AB1C12C for ; Tue, 21 Nov 2023 09:09:45 -0800 (PST) Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-5441ba3e53cso8010405a12.1 for ; Tue, 21 Nov 2023 09:09:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700586584; x=1701191384; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BK/o7l9NMuaWGloqnE/Ke+uB0ZlAw9+itU85K74C1+I=; b=oYivRNF0IiBUD2Px5cY/ptppFvZxDwlKEjAEh4L3gsh7qNmCuAek9N7gZVcbEoOW1B VEto5kmc+60hD+ye77iPk+1LitNkYGf9xy21kvNt+fz5kQah+Q+RNhnQg5nK1TL0z4d/ lOUgpXd3mp1MlXd2Ef6KZgjQSQ/NXDPkyxaTQqqBd13P2qWpWs5unXu4fi0qmgUjT8dv ft7fEh3Tp4/zvgQdA+XAiHCERUPxY7+WSmiiL8iZ/pd+P2Z9LzX/Xrj/Y46RongSxJoP +LPkiGZtz+mji4xyyeUzbcvOyUYsuhjvaXpH+d0RjLmekA7uWPkPmlLDfmR4IVfPim/T 7gdw== X-Gm-Message-State: AOJu0YyBhoUJAFAZyppQfQ811okd7il4v/2OtllASSaIXgp8mdXpI4Ak ej/4H3IWUnKbVLBEDRFe3aA= X-Received: by 2002:a17:906:210:b0:9f7:b852:f807 with SMTP id 16-20020a170906021000b009f7b852f807mr8622733ejd.9.1700586583498; Tue, 21 Nov 2023 09:09:43 -0800 (PST) Received: from localhost (fwdproxy-cln-008.fbsv.net. [2a03:2880:31ff:8::face:b00c]) by smtp.gmail.com with ESMTPSA id y11-20020a1709063a8b00b009fbdacf9363sm3657533ejd.21.2023.11.21.09.09.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 09:09:43 -0800 (PST) From: Breno Leitao To: jpoimboe@kernel.org, mingo@redhat.com, tglx@linutronix.de, bp@alien8.de, Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , Pawan Gupta Cc: leit@meta.com, linux-kernel@vger.kernel.org Subject: [PATCH v6 01/13] x86/bugs: Rename GDS_FORCE_MITIGATION to MITIGATION_GDS_FORCE Date: Tue, 21 Nov 2023 08:07:28 -0800 Message-Id: <20231121160740.1249350-2-leitao@debian.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231121160740.1249350-1-leitao@debian.org> References: <20231121160740.1249350-1-leitao@debian.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 09:09:56 -0800 (PST) CPU mitigations config entries are inconsistent, and names are hard to related[1]. There are concrete benefits for both users and developers of having all the mitigation config options living in the same config namespace. The mitigation options should have consistency and start with MITIGATION. Rename the Kconfig entry from GDS_FORCE_MITIGATION to MITIGATION_GDS_FORCE. [1] Link: https://lore.kernel.org/lkml/20231011044252.42bplzjsam3qsasz@treble/ Suggested-by: Josh Poimboeuf Signed-off-by: Breno Leitao --- arch/x86/Kconfig | 2 +- arch/x86/kernel/cpu/bugs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 3762f41bb092..ddf0d8bc6db9 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2590,7 +2590,7 @@ config SLS against straight line speculation. The kernel image might be slightly larger. -config GDS_FORCE_MITIGATION +config MITIGATION_GDS_FORCE bool "Force GDS Mitigation" depends on CPU_SUP_INTEL default n diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c index bb0ab8466b91..3c7e27b58f0e 100644 --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -671,7 +671,7 @@ enum gds_mitigations { GDS_MITIGATION_HYPERVISOR, }; -#if IS_ENABLED(CONFIG_GDS_FORCE_MITIGATION) +#if IS_ENABLED(CONFIG_MITIGATION_GDS_FORCE) static enum gds_mitigations gds_mitigation __ro_after_init = GDS_MITIGATION_FORCE; #else static enum gds_mitigations gds_mitigation __ro_after_init = GDS_MITIGATION_FULL; -- 2.34.1