Re: [RFC PATCH v4 03/28] x86: Add the Secure Memory Encryption CPU feature
From: Borislav Petkov
Date: Thu Feb 16 2017 - 13:14:27 EST
On Thu, Feb 16, 2017 at 09:42:36AM -0600, Tom Lendacky wrote:
> Update the CPU features to include identifying and reporting on the
> Secure Memory Encryption (SME) feature. SME is identified by CPUID
> 0x8000001f, but requires BIOS support to enable it (set bit 23 of
> SYS_CFG MSR). Only show the SME feature as available if reported by
> CPUID and enabled by BIOS.
> Signed-off-by: Tom Lendacky <thomas.lendacky@xxxxxxx>
> arch/x86/include/asm/cpufeature.h | 7 +++++--
> arch/x86/include/asm/cpufeatures.h | 5 ++++-
> arch/x86/include/asm/disabled-features.h | 3 ++-
> arch/x86/include/asm/msr-index.h | 2 ++
> arch/x86/include/asm/required-features.h | 3 ++-
> arch/x86/kernel/cpu/common.c | 19 +++++++++++++++++++
> 6 files changed, 34 insertions(+), 5 deletions(-)
What happened here?
You had it already:
The bit in get_cpu_cap() with checking the MSR you can add at the end of
init_amd() for example.
Good mailing practices for 400: avoid top-posting and trim the reply.