]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
x86/cpu, kvm: Add support for CPUID_80000021_EAX
authorKim Phillips <kim.phillips@amd.com>
Tue, 10 Jan 2023 22:46:37 +0000 (16:46 -0600)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 25 Jan 2023 11:33:06 +0000 (12:33 +0100)
commit8415a74852d7c24795007ee9862d25feb519007c
tree089cb958df335d0179604b6129795ed56c3dc494
parente12ad468c22065a2826b2fc4c11d2113a7975301
x86/cpu, kvm: Add support for CPUID_80000021_EAX

Add support for CPUID leaf 80000021, EAX. The majority of the features will be
used in the kernel and thus a separate leaf is appropriate.

Include KVM's reverse_cpuid entry because features are used by VM guests, too.

  [ bp: Massage commit message. ]

Signed-off-by: Kim Phillips <kim.phillips@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20230124163319.2277355-2-kim.phillips@amd.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/kvm/reverse_cpuid.h