#[repr(C)]pub struct VbsChunkHeader {
pub byte_count: u32,
pub chunk_type: BootMeasurementType,
pub reserved: u64,
}
Expand description
Chunk that is measured to generate digest. These consist of a 16 byte header followed by data. This needs c style alignment to generate a consistent measurement. Defined by the following struct in C:
ⓘ
typedef struct _VBS_VM_BOOT_MEASUREMENT_CHUNK
{
UINT32 ByteCount;
VBS_VM_BOOT_MEASUREMENT_CHUNK_TYPE Type;
UINT64 Reserved;
union
{
VBS_VM_BOOT_MEASUREMENT_CHUNK_VP_REGISTER VpRegister;
VBS_VM_BOOT_MEASUREMENT_CHUNK_VP_VTL_ENABLED VpVtlEnabled;
VBS_VM_BOOT_MEASUREMENT_CHUNK_GPA_PAGE GpaPage;
} u;
} VBS_VM_BOOT_MEASUREMENT_CHUNK, *PVBS_VM_BOOT_MEASUREMENT_CHUNK;
Structure describing the chunk to be measured
Fields§
§byte_count: u32
The full size to be measured
chunk_type: BootMeasurementType
§reserved: u64
Trait Implementations§
Source§impl IntoBytes for VbsChunkHeader
impl IntoBytes for VbsChunkHeader
Source§impl KnownLayout for VbsChunkHeaderwhere
u64: KnownLayout,
impl KnownLayout for VbsChunkHeaderwhere
u64: KnownLayout,
Source§type PointerMetadata = <u64 as KnownLayout>::PointerMetadata
type PointerMetadata = <u64 as KnownLayout>::PointerMetadata
The type of metadata stored in a pointer to
Self
. Read moreimpl Immutable for VbsChunkHeader
Auto Trait Implementations§
impl Freeze for VbsChunkHeader
impl RefUnwindSafe for VbsChunkHeader
impl Send for VbsChunkHeader
impl Sync for VbsChunkHeader
impl Unpin for VbsChunkHeader
impl UnwindSafe for VbsChunkHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more