]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Aug 2023 17:56:36 +0000 (19:56 +0200)
commit694b40dcfb41a691ce56ce164d8039b05071fc41
treea0b0ab3a57c1bdde041067014533a1f622b25324
parent4fa849d4af687540e1c4d8309bea15ec613279d1
x86/cpufeatures: Assign dedicated feature word for CPUID_0x8000001F[EAX]

commit fb35d30fe5b06cc24444f0405da8fbe0be5330d1 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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