From 75318743c3d6aba87bb72bb8796576e27add13d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Grzesik?= Date: Mon, 3 Nov 2025 11:01:54 +0100 Subject: [PATCH] commonlib: Add pKVM DRNG related timestamps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add 2 new timestamps for measuring the time to generate pKVM deterministic random number generator seed in depthcharge. First indicate when the generation has started and a second when the setup is complete. BUG=b:449097147 TEST=builds Change-Id: I1bced5a331e4d10a1ec1c305b9b2a41d1e913579 Signed-off-by: Bartłomiej Grzesik Reviewed-on: https://review.coreboot.org/c/coreboot/+/89872 Reviewed-by: Julius Werner Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel --- src/commonlib/include/commonlib/timestamp_serialized.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/commonlib/include/commonlib/timestamp_serialized.h b/src/commonlib/include/commonlib/timestamp_serialized.h index 022725af3e..db02ac7219 100644 --- a/src/commonlib/include/commonlib/timestamp_serialized.h +++ b/src/commonlib/include/commonlib/timestamp_serialized.h @@ -178,6 +178,9 @@ enum timestamp_id { TS_PVMFW_GSC_NVRAM_DONE = 1111, TS_PVMFW_SETUP_DONE = 1112, + TS_PKVM_DRNG_SEED_START = 1120, + TS_PKVM_DRNG_SEED_DONE = 1121, + /* 1200-1300: ChromeOS Hypervisor */ TS_CRHV_BOOT = 1200, TS_CRHV_PLATFORM_INIT = 1201, @@ -379,6 +382,9 @@ static const struct timestamp_id_to_name { TS_NAME_DEF(TS_PVMFW_GSC_NVRAM_DONE, 0, "finished fetching boot params from GSC"), TS_NAME_DEF(TS_PVMFW_SETUP_DONE, 0, "finished pvmfw setup"), + TS_NAME_DEF(TS_PKVM_DRNG_SEED_START, 0, "started generating pKVM DRNG seed"), + TS_NAME_DEF(TS_PKVM_DRNG_SEED_DONE, 0, "finished generating pKVM DRNG seed"), + /* ChromeOS hypervisor */ TS_NAME_DEF(TS_CRHV_BOOT, 0, "hypervisor boot finished"), TS_NAME_DEF(TS_CRHV_PLATFORM_INIT, 0, "hypervisor platform initialized"),