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
Showing
- arch/x86/include/asm/cpufeature.h 5 additions, 2 deletionsarch/x86/include/asm/cpufeature.h
- arch/x86/include/asm/cpufeatures.h 11 additions, 6 deletionsarch/x86/include/asm/cpufeatures.h
- arch/x86/include/asm/disabled-features.h 2 additions, 1 deletionarch/x86/include/asm/disabled-features.h
- arch/x86/include/asm/required-features.h 2 additions, 1 deletionarch/x86/include/asm/required-features.h
- arch/x86/kernel/cpu/common.c 3 additions, 0 deletionsarch/x86/kernel/cpu/common.c
- arch/x86/kernel/cpu/scattered.c 0 additions, 5 deletionsarch/x86/kernel/cpu/scattered.c
- tools/arch/x86/include/asm/disabled-features.h 2 additions, 1 deletiontools/arch/x86/include/asm/disabled-features.h
- tools/arch/x86/include/asm/required-features.h 2 additions, 1 deletiontools/arch/x86/include/asm/required-features.h
Loading
Please register or sign in to comment