diff options
author | Tom Lendacky <thomas.lendacky@amd.com> | 2020-01-15 16:05:16 -0600 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-01-16 20:23:20 +0100 |
commit | a006483b2f97af685f0e60f3a547c9ad4c9b9e94 (patch) | |
tree | 0edd8d4f98f6b23d44f681d6c2a021fca3577110 /arch/ia64 | |
parent | ab6a2114433a3b5b555983dcb9b752a85255f04b (diff) |
x86/CPU/AMD: Ensure clearing of SME/SEV features is maintained
If the SME and SEV features are present via CPUID, but memory encryption
support is not enabled (MSR 0xC001_0010[23]), the feature flags are cleared
using clear_cpu_cap(). However, if get_cpu_cap() is later called, these
feature flags will be reset back to present, which is not desired.
Change from using clear_cpu_cap() to setup_clear_cpu_cap() so that the
clearing of the flags is maintained.
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: <stable@vger.kernel.org> # 4.16.x-
Link: https://lkml.kernel.org/r/226de90a703c3c0be5a49565047905ac4e94e8f3.1579125915.git.thomas.lendacky@amd.com
Diffstat (limited to 'arch/ia64')
0 files changed, 0 insertions, 0 deletions