diff options
author | Ravi Bangoria <[email protected]> | 2024-08-08 06:29:36 +0000 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2024-08-22 12:17:44 -0700 |
commit | 54950bfe2b69cdc06ef753872b5225e54eb73506 (patch) | |
tree | de366cc782a154eb24296b8f9b7ac77b0ccbc0ed /tools/testing/selftests/bpf/prog_tests/tcp_custom_syncookie.c | |
parent | dad1613e0533b380318281c1519e1a3477c2d0d2 (diff) |
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 <[email protected]>
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: [email protected]
Signed-off-by: Ravi Bangoria <[email protected]>
Reviewed-by: Jim Mattson <[email protected]>
Reviewed-by: Tom Lendacky <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcp_custom_syncookie.c')
0 files changed, 0 insertions, 0 deletions