diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-06-02 14:10:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-06-02 14:10:01 -0400 |
commit | 7bd1d5edd0160b615ab8748cf94dabcab1fb01cb (patch) | |
tree | 377c23ab160b7f5770b9c3a1b232359b30fa004b /arch/x86/kernel/cpu/amd.c | |
parent | 6751b8d91af515a5dc5196fe305eee0a635e2ea2 (diff) | |
parent | 2ac44ab608705948564791ce1d15d43ba81a1e38 (diff) |
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fixes from Ingo Molnar:
"Two fixes: a quirk for KVM guests running on certain AMD CPUs, and a
KASAN related build fix"
* 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/CPU/AMD: Don't force the CPB cap when running under a hypervisor
x86/boot: Provide KASAN compatible aliases for string routines
Diffstat (limited to 'arch/x86/kernel/cpu/amd.c')
-rw-r--r-- | arch/x86/kernel/cpu/amd.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index 80a405c2048a..8d4e50428b68 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c | |||
@@ -824,8 +824,11 @@ static void init_amd_zn(struct cpuinfo_x86 *c) | |||
824 | { | 824 | { |
825 | set_cpu_cap(c, X86_FEATURE_ZEN); | 825 | set_cpu_cap(c, X86_FEATURE_ZEN); |
826 | 826 | ||
827 | /* Fix erratum 1076: CPB feature bit not being set in CPUID. */ | 827 | /* |
828 | if (!cpu_has(c, X86_FEATURE_CPB)) | 828 | * Fix erratum 1076: CPB feature bit not being set in CPUID. |
829 | * Always set it, except when running under a hypervisor. | ||
830 | */ | ||
831 | if (!cpu_has(c, X86_FEATURE_HYPERVISOR) && !cpu_has(c, X86_FEATURE_CPB)) | ||
829 | set_cpu_cap(c, X86_FEATURE_CPB); | 832 | set_cpu_cap(c, X86_FEATURE_CPB); |
830 | } | 833 | } |
831 | 834 | ||