]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: nSVM: Directly (re)calc vmcb02 intercepts from nested_vmcb02_prepare_control()
authorSean Christopherson <seanjc@google.com>
Wed, 18 Feb 2026 23:09:54 +0000 (15:09 -0800)
committerSean Christopherson <seanjc@google.com>
Thu, 5 Mar 2026 00:08:59 +0000 (16:08 -0800)
commit4a80c4bc1f10645fe3fc51d4c116f69096340683
tree96a089d63959191c17d123a8fe80713b98d9c8aa
parenta367b6e10372b46fa10debd889e89aa65ca65aee
KVM: nSVM: Directly (re)calc vmcb02 intercepts from nested_vmcb02_prepare_control()

Now that nested_vmcb02_recalc_intercepts() provides guardrails against it
being incorrectly called without vmcb02 active, invoke it directly from
nested_vmcb02_recalc_intercepts() instead of bouncing through
svm_mark_intercepts_dirty(), which unnecessarily marks vmcb01 as dirty.

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