From 5110dc12e8e43780bc453fc9d196a4043e903de5 Mon Sep 17 00:00:00 2001 From: Luigi Leonardi Date: Mon, 25 May 2026 14:43:33 +0200 Subject: [PATCH] igvm_defs: add IGVM_VHT_OPTIONAL_BIT const Bit 31 of a Variable Header Type indicates the header is optional and can be ignored by loaders that do not recognize it. Add it as a const. This will be automatically exposed as a convenience macro in the generated C header. Signed-off-by: Luigi Leonardi --- igvm_defs/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/igvm_defs/src/lib.rs b/igvm_defs/src/lib.rs index 45f836f..0828746 100644 --- a/igvm_defs/src/lib.rs +++ b/igvm_defs/src/lib.rs @@ -349,6 +349,9 @@ pub const IGVM_VHT_RANGE_PLATFORM: core::ops::RangeInclusive = 0x1..=0x100; pub const IGVM_VHT_RANGE_INIT: core::ops::RangeInclusive = 0x101..=0x200; /// The range of header types for directive structures. pub const IGVM_VHT_RANGE_DIRECTIVE: core::ops::RangeInclusive = 0x301..=0x400; +/// When set in an [`IgvmVariableHeaderType`], the header may be ignored by +/// loaders that do not recognize it. +pub const IGVM_VHT_OPTIONAL_BIT: u32 = 1 << 31; /// The header describing each structure in the variable header section. Headers /// are aligned to 8 byte boundaries.