]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: SVM: Explicitly mark vmcb01 dirty after modifying VMCB intercepts
authorSean Christopherson <seanjc@google.com>
Wed, 18 Feb 2026 23:09:51 +0000 (15:09 -0800)
committerSean Christopherson <seanjc@google.com>
Thu, 5 Mar 2026 00:08:54 +0000 (16:08 -0800)
commitd5bde6113aed8315a2bfe708730b721be9c2f48b
tree5337218e3126fda4a8db130458d7282651899b95
parent7e79f71bca5cf536f92effc7227bd044c2722c11
KVM: SVM: Explicitly mark vmcb01 dirty after modifying VMCB intercepts

When reacting to an intercept update, explicitly mark vmcb01's intercepts
dirty, as KVM always initially operates on vmcb01, and nested_svm_vmexit()
isn't guaranteed to mark VMCB_INTERCEPTS as dirty.  I.e. if L2 is active,
KVM will modify the intercepts for L1, but might not mark them as dirty
before the next VMRUN of L1.

Fixes: 116a0a23676e ("KVM: SVM: Add clean-bit for intercetps, tsc-offset and pause filter count")
Cc: stable@vger.kernel.org
Reviewed-by: Yosry Ahmed <yosry.ahmed@linux.dev>
Link: https://patch.msgid.link/20260218230958.2877682-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/nested.c