diff options
author | Sean Christopherson <seanjc@google.com> | 2025-08-21 14:38:41 -0700 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2025-09-08 13:19:41 -0700 |
commit | 2f5f8fb9de095e9b255a89269827f1761c714690 (patch) | |
tree | 92043a145f5a62d613f36e8745f1873f4ec432fc /scripts/rustdoc_test_builder.rs | |
parent | a311fce2b694599cede76c5d7a0905336bc09803 (diff) |
KVM: SEV: Save the SEV policy if and only if LAUNCH_START succeeds
Wait until LAUNCH_START fully succeeds to set a VM's SEV/SNP policy so
that KVM doesn't keep a potentially stale policy. In practice, the issue
is benign as the policy is only used to detect if the VMSA can be
decrypted, and the VMSA only needs to be decrypted if LAUNCH_UPDATE and
thus LAUNCH_START succeeded.
Fixes: 962e2b6152ef ("KVM: SVM: Decrypt SEV VMSA in dump_vmcb() if debugging is enabled")
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Kim Phillips <kim.phillips@amd.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/20250821213841.3462339-1-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions