Skip to content

Commit 6fac42f

Browse files
Jarkko Sakkinenbonzini
authored andcommitted
KVM: SVM: Dump Virtual Machine Save Area (VMSA) to klog
As Virtual Machine Save Area (VMSA) is essential in troubleshooting attestation, dump it to the klog with the KERN_DEBUG level of priority. Cc: Jarkko Sakkinen <jarkko@kernel.org> Suggested-by: Harald Hoyer <harald@profian.com> Signed-off-by: Jarkko Sakkinen <jarkko@profian.com> Message-Id: <20220728050919.24113-1-jarkko@profian.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 6c6ab52 commit 6fac42f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

arch/x86/kvm/svm/sev.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,9 @@ static int sev_es_sync_vmsa(struct vcpu_svm *svm)
603603
save->xss = svm->vcpu.arch.ia32_xss;
604604
save->dr6 = svm->vcpu.arch.dr6;
605605

606+
pr_debug("Virtual Machine Save Area (VMSA):\n");
607+
print_hex_dump(KERN_CONT, "", DUMP_PREFIX_NONE, 16, 1, save, sizeof(*save), false);
608+
606609
return 0;
607610
}
608611

0 commit comments

Comments
 (0)