diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-03-10 16:48:13 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-04-08 16:04:19 -0700 |
| commit | cb923ee6a80f4e604e6242a4702b59251e61a380 (patch) | |
| tree | b319ea0e6c635b63338ce9982070885b519871a7 /tools/perf/scripts/python | |
| parent | 624bf3440d7214b62c22d698a0a294323f331d5d (diff) | |
KVM: SEV: Lock all vCPUs when synchronzing VMSAs for SNP launch finish
Lock all vCPUs when synchronizing and encrypting VMSAs for SNP guests, as
allowing userspace to manipulate and/or run a vCPU while its state is being
synchronized would at best corrupt vCPU state, and at worst crash the host
kernel.
Opportunistically assert that vcpu->mutex is held when synchronizing its
VMSA (the SEV-ES path already locks vCPUs).
Fixes: ad27ce155566 ("KVM: SEV: Add KVM_SEV_SNP_LAUNCH_FINISH command")
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260310234829.2608037-6-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
