]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5b95998d2e396cc767f40b60bda0ee41b4bee852
tree1f257d2806bd8f77a72a1a9819268206986b3954
parent0de845ca16708c4f084d3b978cd0e2e7dcbb43df
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