Skip to content

Provide SEV-ES/SEV-SNP support for decrypting the VMSA

Tom Lendacky kvm lkml 1 version Applied

Status from this message: Applied to kvm-x86 svm, with Tom's fixups. Please double check I didn't botch

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 10 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5KVM: SVM: Decrypt SEV VMSA in dump_vmcb() if debugging is enabledarch/x86/kvm/svm/sev.c arch/x86/kvm/svm/svm.c arch/x86/kvm/svm/svm.h+122 -06 replies
2/5KVM: SVM: Dump guest register state in dump_vmcb()arch/x86/kvm/svm/svm.c+53 -00 replies
3/5KVM: SVM: Add the type of VM for which the VMCB/VMSA is being dumpedarch/x86/kvm/svm/svm.c+7 -20 replies
4/5KVM: SVM: Include the vCPU ID when dumping a VMCBarch/x86/kvm/svm/svm.c+2 -20 replies
5/5KVM: SVM: Add a mutex to dump_vmcb() to prevent concurrent outputarch/x86/kvm/svm/svm.c+5 -00 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBorislav Petkov (AMD)Kim Phillips
SeriesA-b T-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] Provide SEV-ES/SEV-SNP support for decrypting the VMSA

This series adds support for decrypting an SEV-ES/SEV-SNP VMSA in dump_vmcb() when the guest policy allows debugging.

It also contains some updates to dump_vmcb() to dump additional guest register state, print the type of guest, print the vCPU id, and adds a mutex to prevent interleaving of the dump_vmcb() messages when multiple vCPU threads call dump_vmcb(). These last patches can be dropped if not desired.

The series is based off of and tested against the KVM tree:
https://git.kernel.org/pub/scm/virt/kvm/kvm.git next

e335300095c3 ("Merge tag 'loongarch-kvm-6.15' of git://git...")

Tom Lendacky (5):
KVM: SVM: Decrypt SEV VMSA in dump_vmcb() if debugging is enabled
KVM: SVM: Dump guest register state in dump_vmcb()
KVM: SVM: Add the type of VM for which the VMCB/VMSA is being dumped
KVM: SVM: Include the vCPU ID when dumping a VMCB
KVM: SVM: Add a mutex to dump_vmcb() to prevent concurrent output

 arch/x86/kvm/svm/sev.c | 98 ++++++++++++++++++++++++++++++++++++++++++
 arch/x86/kvm/svm/svm.c | 80 +++++++++++++++++++++++++++++++++-
 arch/x86/kvm/svm/svm.h | 11 +++++
 3 files changed, 187 insertions(+), 2 deletions(-)

base-commit: e335300095c370149aada9783df2d7bf5b0db7c7

Signature · 1 line
2.46.2