]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
KVM: x86: fix reporting of AMD speculation bug CPUID leaf
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 14 Aug 2019 16:07:34 +0000 (12:07 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 22 Aug 2019 08:08:45 +0000 (10:08 +0200)
commit4c6903a0f9d76be8a907d8238a5e86c829c8954d
treefaa90dbf0aa808f0610c8b0b652d47bfd1075fe0
parente4427372398c31f57450565de277f861a4db5b3b
KVM: x86: fix reporting of AMD speculation bug CPUID leaf

The AMD_* bits have to be set from the vendor-independent
feature and bug flags, because KVM_GET_SUPPORTED_CPUID does not care
about the vendor and they should be set on Intel processors as well.
On top of this, SSBD, STIBP and AMD_SSB_NO bit were not set, and
VIRT_SSBD does not have to be added manually because it is a
cpufeature that comes directly from the host's CPUID bit.

Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c