linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86/cpu: Add Zhaoxin CPUs to the cpu vulnerability whitelist
@ 2020-01-15  8:11 Tony W Wang-oc
  0 siblings, 0 replies; only message in thread
From: Tony W Wang-oc @ 2020-01-15  8:11 UTC (permalink / raw)
  To: tglx, mingo, bp, hpa, x86, luto, peterz, pawan.kumar.gupta,
	fenghua.yu, vineela.tummalapalli, linux-kernel
  Cc: DavidWang, CooperYan, QiyuanWang, HerryYang

New Zhaoxin family 7 CPUs are not affected by SWAPGS, add these CPUs
to the cpu vulnerability whitelist.

Signed-off-by: Tony W Wang-oc <TonyWWang-oc@zhaoxin.com>
---
 arch/x86/kernel/cpu/common.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index 2e4d902..3488507 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -1084,6 +1084,10 @@ static const __initconst struct x86_cpu_id cpu_vuln_whitelist[] = {
 	/* FAMILY_ANY must be last, otherwise 0x0f - 0x12 matches won't work */
 	VULNWL_AMD(X86_FAMILY_ANY,	NO_MELTDOWN | NO_L1TF | NO_MDS | NO_SWAPGS | NO_ITLB_MULTIHIT),
 	VULNWL_HYGON(X86_FAMILY_ANY,	NO_MELTDOWN | NO_L1TF | NO_MDS | NO_SWAPGS | NO_ITLB_MULTIHIT),
+
+	/* Zhaoxin Family 7 */
+	VULNWL(CENTAUR, 7, X86_MODEL_ANY,       NO_SWAPGS),
+	VULNWL(ZHAOXIN, 7, X86_MODEL_ANY,       NO_SWAPGS),
 	{}
 };
 
-- 
2.7.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-15  8:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-15  8:11 [PATCH] x86/cpu: Add Zhaoxin CPUs to the cpu vulnerability whitelist Tony W Wang-oc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).