diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-03-10 16:48:17 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-04-08 16:04:25 -0700 |
| commit | 56906910ea3084cbe82b9078a561130a6203f978 (patch) | |
| tree | 61c05c78f790e70b32fa40e3cad7517349f3604a /rust/kernel/interop/git@git.tavy.me:linux-stable.git | |
| parent | 138e5f6a3e1172fee8665bc8b1bbe695ba6b2adf (diff) | |
KVM: SEV: Document the SEV-ES check when querying SMM support as "safe"
Use the "unsafe" API to check for an SEV-ES+ guest when determining whether
or not SMBASE is a supported MSR, i.e. whether or not emulated SMM is
supported. This will eventually allow adding lockdep assertings to the
APIs for detecting SEV+ VMs without triggering "real" false positives.
While svm_has_emulated_msr() doesn't hold kvm->lock, i.e. can get both
false positives *and* false negatives, both are completely fine, as the
only time the result isn't stable is when userspace is the sole consumer
of the result. I.e. userspace can confuse itself, but that's it.
No functional change intended.
Link: https://patch.msgid.link/20260310234829.2608037-10-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
