Re: [PATCH v3 1/4] x86/sev: add SVSM vTPM probe/send_command functions

2025-03-12 Thread Stefano Garzarella
On Tue, Mar 11, 2025 at 11:56:23AM +0200, Jarkko Sakkinen wrote: On Tue, Mar 11, 2025 at 10:42:22AM +0100, Stefano Garzarella wrote: Add two new functions to probe and send commands to the SVSM vTPM. They leverage the two calls defined by the AMD SVSM specification [1] for the vTPM protocol: SVS

Re: [RFC PATCH] IMA: Remove evm_overlay.sh

2025-03-12 Thread Petr Vorel
Hi Mimi, Ignaz, > On Fri, 2025-03-07 at 11:24 +0100, Petr Vorel wrote: > > Hi Mimi, Ignaz, > > > Proof of concept, it was never fixed in the kernel. > > > Instead we should have some basic EVM tests. > > gently ping. Is evm_overlay.sh test useful for you? > > Otherwise I'll delete it. > Requiri

tFrom 1dc5533382b9951c70b1a38f02065b41453b175a Mon Sep 17 00:00:00 2001

2025-03-12 Thread Stuart Yoder
Firmware Framework for Arm A-profile (FF-A) is a messaging framework for Arm-based systems, and in the context of the TPM CRB driver is used to signal 'start' to a CRB-based TPM service which is hosted in an FF-A secure partition running in TrustZone. These patches add support for the CRB FF-A sta

[PATCH v8 2/5] tpm_crb: clean-up and refactor check for idle support

2025-03-12 Thread Stuart Yoder
Refactor TPM idle check to tpm_crb_has_idle(), and reduce paraentheses usage in start method checks Reviewed-by: Jarkko Sakkinen Signed-off-by: Stuart Yoder --- drivers/char/tpm/tpm_crb.c | 36 +--- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/

Re: [PATCH v3 2/4] svsm: add header with SVSM_VTPM_CMD helpers

2025-03-12 Thread Stefano Garzarella
On Tue, Mar 11, 2025 at 12:07:55PM +0200, Jarkko Sakkinen wrote: On Tue, Mar 11, 2025 at 10:42:23AM +0100, Stefano Garzarella wrote: 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 Implement

Re: Build error on -next due to tpm_crb.c changes?

2025-03-12 Thread Stuart Yoder
On 3/11/25 4:17 PM, Sudeep Holla wrote: On Tue, Mar 11, 2025 at 01:25:50PM -0500, Stuart Yoder wrote: On 3/11/25 11:51 AM, Thorsten Leemhuis wrote: On 11.03.25 16:53, Stuart Yoder wrote: On 3/11/25 10:21 AM, Thorsten Leemhuis wrote: On 05.03.25 18:36, Stuart Yoder wrote: [...] So, it sh

[PATCH v8 1/5] tpm_crb: ffa_tpm: implement driver compliant to CRB over FF-A

2025-03-12 Thread Stuart Yoder
The Arm specification TPM Service CRB over FF-A specification defines the FF-A messages to interact with a CRB-based TPM implemented as an FF-A secure partition. Spec URL: https://developer.arm.com/documentation/den0138/latest/ This driver is probed when a TPM Secure Partition is discovered by th

[PATCH v8 4/5] tpm_crb: add support for the Arm FF-A start method

2025-03-12 Thread Stuart Yoder
The TCG ACPI spec v1.4 defines a start method for the TPMs implemented with the Arm CRB over FF-A ABI. Add support for the FF-A start method, and use interfaces provided by the ffa_crb driver to interact with the FF-A based TPM. Reviewed-by: Jarkko Sakkinen Signed-off-by: Stuart Yoder --- driv

[PATCH v8 3/5] ACPICA: add start method for Arm FF-A

2025-03-12 Thread Stuart Yoder
Add TPM start method for Arm FF-A defined in the TCG ACPI specification v1.4. Link: https://github.com/acpica/acpica/pull/1000 Reviewed-by: Jarkko Sakkinen Signed-off-by: Stuart Yoder --- include/acpi/actbl3.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/acpi/actbl3.h b/include/a