]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: SEV: Add quad-underscore version of VM-scoped APIs to detect SEV+ guests
authorSean Christopherson <seanjc@google.com>
Tue, 10 Mar 2026 23:48:16 +0000 (16:48 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 8 Apr 2026 23:04:25 +0000 (16:04 -0700)
commit138e5f6a3e1172fee8665bc8b1bbe695ba6b2adf
tree6d9c60bd151ec360fab5344ee67d1516e552bedc
parent5bf92e475311b22598770caa151dea697b63c0cf
KVM: SEV: Add quad-underscore version of VM-scoped APIs to detect SEV+ guests

Add "unsafe" quad-underscore versions of the SEV+ guest detectors in
anticipation of hardening the APIs via lockdep assertions.  This will allow
adding exceptions for usage that is known to be safe in advance of the
lockdep assertions.

Use a pile of underscores to try and communicate that use of the "unsafe"
shouldn't be done lightly.

No functional change intended.

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