Skip to content
Commit d518f8cc authored by Sean Christopherson's avatar Sean Christopherson
Browse files

KVM: SVM: Fix dead KVM_BUG() code in LBR MSR virtualization



Refactor KVM's handling of LBR MSRs on SVM to avoid a second layer of
case statements, and thus eliminate a dead KVM_BUG() call, which (a) will
never be hit in the current code base and (b) if a future commit breaks
things, will never fire as KVM passes "false" instead "true" or '1' for
the KVM_BUG() condition.

Reported-by: default avatarMichal Luczaj <mhal@rbox.co>
Cc: Yuan Yao <yuan.yao@intel.com>
Link: https://lore.kernel.org/r/20230607203519.1570167-2-seanjc@google.com


Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent a6bb5709
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment