mbox series

[v3,0/2] x86: KVM: Add missing AMD features

Message ID 20241204134345.189041-1-davydov-max@yandex-team.ru (mailing list archive)
Headers show
Series x86: KVM: Add missing AMD features | expand

Message

Maksim Davydov Dec. 4, 2024, 1:43 p.m. UTC
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@yandex-team.ru/

v3 -> v2:
* rebased onto the newest master
* AMD_IBPB_RET was removed because all work had been done in 71dd5d5300d2
* renamed "IBRS provides same mode protection" bit

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

v2:
https://lore.kernel.org/kvm/20241126094424.943192-1-davydov-max@yandex-team.ru/

v1:
https://lore.kernel.org/kvm/20241113133042.702340-1-davydov-max@yandex-team.ru/


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(-)