From f1d902536fa10bd84cb5f62c4787033cdf24a574 Mon Sep 17 00:00:00 2001 From: Ming-Wei Shih Date: Wed, 29 Jul 2026 21:36:28 +0000 Subject: [PATCH] igvm_defs: Add optional IGVM_VHT_VERSION_STRING Signed-off-by: Ming-Wei Shih --- igvm_defs/src/lib.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/igvm_defs/src/lib.rs b/igvm_defs/src/lib.rs index b122c40..539b6f8 100644 --- a/igvm_defs/src/lib.rs +++ b/igvm_defs/src/lib.rs @@ -290,6 +290,17 @@ pub enum IgvmVariableHeaderType { /// A CCA policy structure described by [`IGVM_VHS_CCA_POLICY`]. IGVM_VHT_CCA_POLICY = 0x106, + /// A human-readable version string for the IGVM file. + /// + /// The body of this header is the UTF-8 encoded string itself; there is + /// no separate VHS descriptor struct. The string length is given by the + /// `length` field of the enclosing [`IGVM_VHS_VARIABLE_HEADER`]. + /// + /// The string's meaning is defined by the IGVM file owner (e.g. a SemVer + /// release tag, a build identifier, or any other human-readable label). + /// There may be at most one such header in the file. + IGVM_VHT_VERSION_STRING = 0x107, + // These are IGVM_VHT_RANGE_DIRECTIVE structures. /// A parameter area structure described by [`IGVM_VHS_PARAMETER_AREA`]. IGVM_VHT_PARAMETER_AREA = 0x301,