]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb23a29c54e912d7cf410c8ca9f09de659db672e4
treea9e294780eb3e64f470afb6cfc094f460ae3bd9d
parentef209a64982a462678c673c72cfbfec22fb2e108
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