From: Breno Leitao <leitao@debian.org>
To: bp@alien8.de, x86@kernel.org
Cc: kernel-team@meta.com, jpoimboe@kernel.org,
pawan.kumar.gupta@linux.intel.com, linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] x86/bugs: default spectre_v2_user_cmd depends on Kconfig
Date: Tue, 15 Oct 2024 03:51:04 -0700 [thread overview]
Message-ID: <20241015105107.496105-1-leitao@debian.org> (raw)
This series contains two patches that improve the handling of Spectre v2
user mitigations in the x86 architecture:
1. Make spectre_v2_user_cmd default depend on Kconfig
2. Simplify spectre_v2_user_select_mitigation() using cpu_smt_possible()
The first patch was originally part of a larger patchset [1] but was
removed in version 3 [2] to simplify the revision process. Now that the
original patchset has been merged, I am resubmitting this patch
separately.
This patch aligns the default configuration of spectre_v2_user_cmd with
CONFIG_MITIGATION_SPECTRE_V2, consistent with other user-selectable
mitigations.
The other patch is a simple optimization that leverages the
cpu_smt_possible() helper function to simplify the code in
spectre_v2_user_select_mitigation().
Together, these changes improve code consistency and simplify the
configuration and selection of Spectre v2 user mitigations.
[1] https://lore.kernel.org/all/20240118173213.2008115-4-leitao@debian.org/
[2] https://lore.kernel.org/all/20240422165830.2142904-1-leitao@debian.org/
Breno Leitao (2):
x86/bugs: Use cpu_smt_possible helper
x86/bugs: spectre user default must depend on MITIGATION_SPECTRE_V2
arch/x86/kernel/cpu/bugs.c | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
--
2.43.5
next reply other threads:[~2024-10-15 10:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-15 10:51 Breno Leitao [this message]
2024-10-15 10:51 ` [PATCH 1/2] x86/bugs: Use cpu_smt_possible helper Breno Leitao
2024-10-28 14:06 ` Pawan Gupta
2024-10-15 10:51 ` [PATCH 2/2] x86/bugs: spectre user default must depend on MITIGATION_SPECTRE_V2 Breno Leitao
2024-10-28 14:34 ` Pawan Gupta
2024-10-29 9:19 ` Breno Leitao
2024-10-30 18:40 ` Pawan Gupta
2024-10-31 9:42 ` Breno Leitao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241015105107.496105-1-leitao@debian.org \
--to=leitao@debian.org \
--cc=bp@alien8.de \
--cc=jpoimboe@kernel.org \
--cc=kernel-team@meta.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pawan.kumar.gupta@linux.intel.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®