x86/cpufeatures: Assign dedicated feature word for CPUID_0x8000001F[EAX]
authorSean Christopherson <seanjc@google.com>
Fri, 22 Jan 2021 20:40:46 +0000 (12:40 -0800)
committerBorislav Petkov <bp@suse.de>
Thu, 28 Jan 2021 16:41:24 +0000 (17:41 +0100)
commitfb35d30fe5b06cc24444f0405da8fbe0be5330d1
tree1f257d2806bd8f77a72a1a9819268206986b3954
parent7c53f6b671f4aba70ff15e1b05148b10d58c2837
x86/cpufeatures: Assign dedicated feature word for CPUID_0x8000001F[EAX]

Collect the scattered SME/SEV related feature flags into a dedicated
word.  There are now five recognized features in CPUID.0x8000001F.EAX,
with at least one more on the horizon (SEV-SNP).  Using a dedicated word
allows KVM to use its automagic CPUID adjustment logic when reporting
the set of supported features to userspace.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Brijesh Singh <brijesh.singh@amd.com>
Link: https://lkml.kernel.org/r/20210122204047.2860075-2-seanjc@google.com
arch/x86/include/asm/cpufeature.h
arch/x86/include/asm/cpufeatures.h
arch/x86/include/asm/disabled-features.h
arch/x86/include/asm/required-features.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/cpu/scattered.c
tools/arch/x86/include/asm/disabled-features.h
tools/arch/x86/include/asm/required-features.h