Crate igvm

Source
Expand description

Provides a Rust implementation of an Independent Guest Virtual Machine (IGVM) file format parser, with the specification defined by the igvm_defs crate.

This can be used to build or read IGVM files from their binary format. Note that this parser may not implement all the specified structure types or semantics defined in the IGVM file format.

Modules§

c_api
Provides an alternative interface for using the IGVM crate that is suitable for calling from C.
hv_defs
A subset of the Microsoft hypervisor definitions used by the igvm crate.
page_table
Methods to construct page tables.
registers
Register types used by the IGVM file format.
snp_defs
AMD SEV-SNP specific definitions.

Structs§

FileDataSerializer
The serializer for headers with file data. This serializer deduplicates data seen before, by handing out a file offset to already serialized data sections that match.
IgvmFile
An in-memory IGVM file that can be used to load a guest, or serialized to the binary format.
IgvmRelocatableRegion
Represents information about an IGVM relocatable region.

Enums§

Arch
Architecture for an IGVM file.
BinaryHeaderError
Binary serialization errors when converting a typed Rust IgvmDirectiveHeader to the corresponding IGVM binary format or vice versa.
Error
IgvmDirectiveHeader
Represents a structure in an IGVM variable header section, directive structure.
IgvmInitializationHeader
Represents a structure in an IGVM variable header section, initialization structure.
IgvmPlatformHeader
Represents a structure in an IGVM variable header section, platform structure.
IgvmRevision
Format revision for an IGVM file.
IsolationType
The guest isolation type of the platform.