[PATCH v2 0/2] x86: KVM: Add missing AMD features

From: Maksim Davydov
Date: Tue Nov 26 2024 - 04:45:37 EST


This series adds definition of some missing AMD features in
0x80000008_EBX and 0x80000021_EAX functions. It also gives an opportunity
to expose these features to userspace.

Related discussion in QEMU:
https://lore.kernel.org/kvm/24462567-e486-4b7f-b869-a1fab48d739c@xxxxxxxxxxxxxx/

v2 -> v1:
* fixed the bug in the FSRC definition

v1:
https://lore.kernel.org/kvm/20241113133042.702340-1-davydov-max@xxxxxxxxxxxxxx/

Maksim Davydov (2):
x86: KVM: Advertise FSRS and FSRC on AMD to userspace
x86: KVM: Advertise AMD's speculation control features

arch/x86/include/asm/cpufeatures.h | 5 +++++
arch/x86/kvm/cpuid.c | 9 +++++----
2 files changed, 10 insertions(+), 4 deletions(-)

--
2.34.1