OSDN Git Service

KVM: SVM: Clean up handling of LBR virtualization enabled
authorSean Christopherson <seanjc@google.com>
Wed, 7 Jun 2023 20:35:18 +0000 (13:35 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 2 Aug 2023 23:41:54 +0000 (16:41 -0700)
commit41dfb5f13ed9101b217e7085e5b5fb07d705e27f
treee4547b6ab68c13344842b84552752e4fb0d94f13
parentd518f8cc10af7a1265595fccf553a3a5f7121e4f
KVM: SVM: Clean up handling of LBR virtualization enabled

Clean up the enable_lbrv computation in svm_update_lbrv() to consolidate
the logic for computing enable_lbrv into a single statement, and to remove
the coding style violations (lack of curly braces on nested if).

No functional change intended.

Link: https://lore.kernel.org/r/20230607203519.1570167-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/svm.c