diff options
| author | Jim Mattson <[email protected]> | 2019-12-14 00:15:16 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2019-12-18 16:46:35 +0000 |
| commit | 8715f05269bfbc6453e25e80825d781a82902f8e (patch) | |
| tree | 633859ce341be90e9340947b7c13f1386b802267 /net/unix/af_unix.c | |
| parent | kvm: x86: Host feature SSBD doesn't imply guest feature SPEC_CTRL_SSBD (diff) | |
| download | kernel-8715f05269bfbc6453e25e80825d781a82902f8e.tar.gz kernel-8715f05269bfbc6453e25e80825d781a82902f8e.zip | |
kvm: x86: Host feature SSBD doesn't imply guest feature AMD_SSBD
The host reports support for the synthetic feature X86_FEATURE_SSBD
when any of the three following hardware features are set:
CPUID.(EAX=7,ECX=0):EDX.SSBD[bit 31]
CPUID.80000008H:EBX.AMD_SSBD[bit 24]
CPUID.80000008H:EBX.VIRT_SSBD[bit 25]
Either of the first two hardware features implies the existence of the
IA32_SPEC_CTRL MSR, but CPUID.80000008H:EBX.VIRT_SSBD[bit 25] does
not. Therefore, CPUID.80000008H:EBX.AMD_SSBD[bit 24] should only be
set in the guest if CPUID.(EAX=7,ECX=0):EDX.SSBD[bit 31] or
CPUID.80000008H:EBX.AMD_SSBD[bit 24] is set on the host.
Fixes: 4c6903a0f9d76 ("KVM: x86: fix reporting of AMD speculation bug CPUID leaf")
Signed-off-by: Jim Mattson <[email protected]>
Reviewed-by: Jacob Xu <[email protected]>
Reviewed-by: Peter Shier <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: [email protected]
Reported-by: Eric Biggers <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
