]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: SVM: Separate recalc_intercepts() into nested vs. non-nested parts
authorSean Christopherson <seanjc@google.com>
Wed, 18 Feb 2026 23:09:52 +0000 (15:09 -0800)
committerSean Christopherson <seanjc@google.com>
Thu, 5 Mar 2026 00:08:58 +0000 (16:08 -0800)
commit0b97f929831a70e7ad6d9dbd30ae1f65dd43526d
tree17752f57cc39b67f63c28ae33d598fbbb437ad39
parent460c7eb2e7594319abcb2066c737cb8b5eb78213
KVM: SVM: Separate recalc_intercepts() into nested vs. non-nested parts

Extract the non-nested aspects of recalc_intercepts() into a separate
helper, svm_mark_intercepts_dirty(), to make it clear that the call isn't
*just* recalculating (vmcb02's) intercepts, and to not bury non-nested
code in nested.c.

As suggested by Yosry, opportunistically prepend "nested_vmbc02_" to
recalc_intercepts() so that it's obvious the function specifically deals
with recomputing intercepts for L2.

No functional change intended.

Cc: Yosry Ahmed <yosry.ahmed@linux.dev>
Reviewed-by: Yosry Ahmed <yosry.ahmed@linux.dev>
Link: https://patch.msgid.link/20260218230958.2877682-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/nested.c
arch/x86/kvm/svm/sev.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h