KVM: x86: Propagate the AMD Automatic IBRS feature to the guest
authorKim Phillips <kim.phillips@amd.com>
Tue, 24 Jan 2023 16:33:19 +0000 (10:33 -0600)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 25 Jan 2023 16:21:40 +0000 (17:21 +0100)
commit8c19b6f257fa71ed3a7a9df6ce466c6be31ca04c
tree96793126145310ca3a474b9032e63c3c0495edd8
parente7862eda309ecfccc36bb5558d937ed3ace07f3f
KVM: x86: Propagate the AMD Automatic IBRS feature to the guest

Add the AMD Automatic IBRS feature bit to those being propagated to the guest,
and enable the guest EFER bit.

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-9-kim.phillips@amd.com
arch/x86/kvm/cpuid.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/x86.c