[PATCH v1 0/2] x86/bugs: Exclude Zhaoxin family 7 CPUs

From: Tony W Wang-oc
Date: Thu Jan 16 2020 - 21:24:09 EST


New Zhaoxin family 7 CPUs are not affected by SPECTRE_V2, SWAPGS.

Extend cpu_vuln_whitelist flag with a NO_SPECTRE_V2 bit. And add
these CPUs to the cpu vulnerability whitelist.

Tony W Wang-oc (2):
x86/speculation/spectre_v2: Exclude Zhaoxin CPUs from SPECTRE_V2
x86/speculation/swapgs: Exclude Zhaoxin CPUs from SWAPGS

arch/x86/kernel/cpu/common.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

--
2.7.4