diff options
author | 2024-08-08 06:29:36 +0000 | |
---|---|---|
committer | 2024-08-22 12:17:44 -0700 | |
commit | 54950bfe2b69cdc06ef753872b5225e54eb73506 (patch) | |
tree | de366cc782a154eb24296b8f9b7ac77b0ccbc0ed /rust/helpers/workqueue.c | |
parent | KVM: SVM: fix emulation of msr reads/writes of MSR_FS_BASE and MSR_GS_BASE (diff) | |
download | wireguard-linux-54950bfe2b69cdc06ef753872b5225e54eb73506.tar.xz wireguard-linux-54950bfe2b69cdc06ef753872b5225e54eb73506.zip |
KVM: SVM: Don't advertise Bus Lock Detect to guest if SVM support is missing
If host supports Bus Lock Detect, KVM advertises it to guests even if
SVM support is absent. Additionally, guest wouldn't be able to use it
despite guest CPUID bit being set. Fix it by unconditionally clearing
the feature bit in KVM cpu capability.
Reported-by: Jim Mattson <jmattson@google.com>
Closes: https://lore.kernel.org/r/CALMp9eRet6+v8Y1Q-i6mqPm4hUow_kJNhmVHfOV8tMfuSS=tVg@mail.gmail.com
Fixes: 76ea438b4afc ("KVM: X86: Expose bus lock debug exception to guest")
Cc: stable@vger.kernel.org
Signed-off-by: Ravi Bangoria <ravi.bangoria@amd.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/20240808062937.1149-4-ravi.bangoria@amd.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions