xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] acpi: Set TPM2 LAML to actual log area size
@ 2025-11-04 16:12 Tu Dinh
  2025-11-04 17:07 ` Andrew Cooper
  0 siblings, 1 reply; 3+ messages in thread
From: Tu Dinh @ 2025-11-04 16:12 UTC (permalink / raw)
  To: xen-devel; +Cc: Jan Beulich, Anthony PERARD, Tu Dinh

The LAML field should follow the TCG PFP specification:

The TCG ACPI specification uses the field name "Log Area Minimum
Length", but the field value is the actual log area length reserved by
Platform Firmware, not a lower bound.

Signed-off-by: Tu Dinh <ngoc-tu.dinh@vates.tech>
---
 tools/libacpi/build.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/libacpi/build.c b/tools/libacpi/build.c
index 2f29863db1..95188e217e 100644
--- a/tools/libacpi/build.c
+++ b/tools/libacpi/build.c
@@ -473,7 +473,7 @@ static int construct_secondary_tables(struct acpi_ctxt *ctxt,
             tpm2->platform_class = TPM2_ACPI_CLASS_CLIENT;
             tpm2->control_area_address = TPM_CRB_CTRL_REQ;
             tpm2->start_method = TPM2_START_METHOD_CRB;
-            tpm2->log_area_minimum_length = TPM_LOG_AREA_MINIMUM_SIZE;
+            tpm2->log_area_minimum_length = TPM_LOG_SIZE;
             tpm2->log_area_start_address = TPM_LOG_AREA_ADDRESS;
 
             set_checksum(tpm2,
-- 
2.43.0



--
Ngoc Tu Dinh | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-11-05  0:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-04 16:12 [PATCH] acpi: Set TPM2 LAML to actual log area size Tu Dinh
2025-11-04 17:07 ` Andrew Cooper
2025-11-05  0:02   ` Tu Dinh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).