x86/bugs: Add Hygon Dhyana to the respective mitigation machinery
authorPu Wen <puwen@hygon.cn>
Sun, 23 Sep 2018 09:35:50 +0000 (17:35 +0800)
committerBorislav Petkov <bp@suse.de>
Thu, 27 Sep 2018 16:28:59 +0000 (18:28 +0200)
commit1a576b23d63794f39a247fb31056eecccbf9a287
treea9e294780eb3e64f470afb6cfc094f460ae3bd9d
parentda33dfef404174b0b452f4d2a9a9e00801794f3a
x86/bugs: Add Hygon Dhyana to the respective mitigation machinery

The Hygon Dhyana CPU has the same speculative execution as AMD family
17h, so share AMD spectre mitigation code with Hygon Dhyana.

Also Hygon Dhyana is not affected by meltdown, so add exception for it.

Signed-off-by: Pu Wen <puwen@hygon.cn>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: tglx@linutronix.de
Cc: mingo@redhat.com
Cc: hpa@zytor.com
Cc: x86@kernel.org
Cc: thomas.lendacky@amd.com
Link: https://lkml.kernel.org/r/0861d39c8a103fc0deca15bafbc85d403666d9ef.1537533369.git.puwen@hygon.cn
arch/x86/kernel/cpu/bugs.c
arch/x86/kernel/cpu/common.c