diff options
author | Sean Christopherson <seanjc@google.com> | 2025-02-27 04:25:40 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2025-03-03 18:34:55 +0300 |
commit | 5279d6f7e43d9c5863411482943200bf5ab8a261 (patch) | |
tree | 5e2d5e59770b229b59ad329f82cd5c7e072a325e /tools/perf/scripts/python/task-analyzer.py | |
parent | e268beee4a25ce58807a96253e95e96c2e3a5c1a (diff) | |
download | linux-5279d6f7e43d9c5863411482943200bf5ab8a261.tar.xz |
KVM: SVM: Use guard(mutex) to simplify SNP vCPU state updates
Use guard(mutex) in sev_snp_init_protected_guest_state() and pull in its
lock-protected inner helper. Without an unlock trampoline (and even with
one), there is no real need for an inner helper. Eliminating the helper
also avoids having to fixup the open coded "lockdep" WARN_ON().
Opportunistically drop the error message if KVM can't obtain the pfn for
the new target VMSA. The error message provides zero information that
can't be gleaned from the fact that the vCPU is stuck.
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/20250227012541.3234589-10-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions