]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: SEV: Document that checking for SEV+ guests when reclaiming memory is "safe"
authorSean Christopherson <seanjc@google.com>
Tue, 10 Mar 2026 23:48:22 +0000 (16:48 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 9 Apr 2026 19:00:19 +0000 (12:00 -0700)
commit2f34d421e8f041cf831b26a7596dc38336062d24
treed9a7a640dd261bf2b6624c287d93e633fbb9004b
parent85d2243a21122b9be328152b9e0a0a64625b7016
KVM: SEV: Document that checking for SEV+ guests when reclaiming memory is "safe"

Document that the check for an SEV+ guest when reclaiming guest memory is
safe even though kvm->lock isn't held.  This will allow asserting that
kvm->lock is held in the SEV accessors, without triggering false positives
on the "safe" cases.

No functional change intended.

Link: https://patch.msgid.link/20260310234829.2608037-15-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/sev.c