]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: SEV: Make it more obvious when KVM is writing back the current PSC index
authorSean Christopherson <seanjc@google.com>
Fri, 29 May 2026 18:35:36 +0000 (20:35 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 3 Jun 2026 14:43:55 +0000 (16:43 +0200)
commit17d62e0b157f262dd8c7586cb882ece72a5b10c2
tree72f7b005eff1acb436715d0de03c3ea75fbdedcc
parente43ffb69e0438cddd72aaa30898b4dc446f664f8
KVM: SEV: Make it more obvious when KVM is writing back the current PSC index

Increment the guest-visible "cur_entry" index outside of the for-loop
when processing Page State Change entries, and add a comment to make it
more obvious which code is operating on trusted data, and which code is
touching guest-accessible data.

No functional change intended.

Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-ID: <20260501202250.2115252-12-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20260529183549.1104619-12-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c