]> www.infradead.org Git - users/jedix/linux-maple.git/commit
svsm: Add header with SVSM_VTPM_CMD helpers
authorStefano Garzarella <sgarzare@redhat.com>
Thu, 3 Apr 2025 10:09:40 +0000 (12:09 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Thu, 10 Apr 2025 14:20:06 +0000 (16:20 +0200)
commitb2849b0723668ae3e0739b2c9c066eafe8bc0961
tree80b7c133f19e8538769c52d101f14bbb894bcb8d
parent770de678bc281f6b0be339c29c1ad74dfb0e9325
svsm: Add header with SVSM_VTPM_CMD helpers

Add helpers for the SVSM_VTPM_CMD calls used by the vTPM protocol defined by
the AMD SVSM spec [1].

The vTPM protocol follows the Official TPM 2.0 Reference Implementation
(originally by Microsoft, now part of the TCG) simulator protocol.

  [1] "Secure VM Service Module for SEV-SNP Guests"
      Publication # 58019 Revision: 1.00

Co-developed-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Co-developed-by: Claudio Carvalho <cclaudio@linux.ibm.com>
Signed-off-by: Claudio Carvalho <cclaudio@linux.ibm.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Link: https://lore.kernel.org/r/20250403100943.120738-3-sgarzare@redhat.com
include/linux/tpm_svsm.h [new file with mode: 0644]