]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: SVM: Decrypt SEV VMSA in dump_vmcb() if debugging is enabled
authorTom Lendacky <thomas.lendacky@amd.com>
Thu, 20 Mar 2025 13:26:49 +0000 (08:26 -0500)
committerSean Christopherson <seanjc@google.com>
Fri, 25 Apr 2025 23:19:52 +0000 (16:19 -0700)
commit962e2b6152ef1264224a9e1793ad2d5b5f3311a8
tree9d95f8afd28123350f394d9214c1c059ac69dd35
parent309d28576f0a23931a36bf67324868448f79a77e
KVM: SVM: Decrypt SEV VMSA in dump_vmcb() if debugging is enabled

An SEV-ES/SEV-SNP VM save area (VMSA) can be decrypted if the guest
policy allows debugging. Update the dump_vmcb() routine to output
some of the SEV VMSA contents if possible. This can be useful for
debug purposes.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Acked-by: Borislav Petkov (AMD) <bp@alien8.de>
Tested-by: Kim Phillips <kim.phillips@amd.com>
Link: https://lore.kernel.org/r/ea3b852c295b6f4b200925ed6b6e2c90d9475e71.1742477213.git.thomas.lendacky@amd.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/sev.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h