aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2023-06-07 13:35:17 -0700
committerSean Christopherson <[email protected]>2023-08-02 16:41:54 -0700
commitd518f8cc10af7a1265595fccf553a3a5f7121e4f (patch)
tree77897fb6fafea8df7389ad1893bc293d28fac1f0 /lib/memory-notifier-error-inject.c
parenta6bb5709029756a6151afed0eec26ba2bfabed51 (diff)
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: Michal Luczaj <[email protected]> Cc: Yuan Yao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions