]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: nSVM: Refactor checking LBRV enablement in vmcb12 into a helper
authorYosry Ahmed <yosry@kernel.org>
Tue, 3 Mar 2026 00:34:00 +0000 (00:34 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 5 Mar 2026 00:08:46 +0000 (16:08 -0800)
commit290c8d82023ab0e1d2782d37136541e017174d7c
tree66fb11c5b7c77fd71f65d709f4ce01b781c9e00e
parent01ddcdc55e097ca38c28ae656711b8e6d1df71f8
KVM: nSVM: Refactor checking LBRV enablement in vmcb12 into a helper

Refactor the vCPU cap and vmcb12 flag checks into a helper. The
unlikely() annotation is dropped, it's unlikely (huh) to make a
difference and the CPU will probably predict it better on its own.

CC: stable@vger.kernel.org
Co-developed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Yosry Ahmed <yosry@kernel.org>
Link: https://patch.msgid.link/20260303003421.2185681-7-yosry@kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/nested.c