Expand description
Read an IGVM image from either a raw IGVM file or a vmfirmwareigvm
resource DLL.
Production OpenHCL IGVM files are shipped encapsulated in a Windows
resource-only DLL (vmfirmwareigvm.dll / vmfirmwarecvm.dll), where the
IGVM payload is stored as a custom VMFW resource with id 1 โ see the
1 VMFW <igvm> entry in openhcl/vmfirmwareigvm_dll/resources.rc. To let
dump / dump-corim operate directly on those shipped DLLs (e.g. to
confirm a CoRIM is present in the packaged firmware), this module detects a
PE input and extracts the embedded IGVM from it.
Constantsยง
- VMFW_
RESOURCE_ ๐TYPE - Custom PE resource type name under which the IGVM payload is stored in a
vmfirmwareigvmresource DLL (the1 VMFW <igvm>entry inresources.rc).
Functionsยง
- extract_
vmfw_ ๐resource - Extract the embedded IGVM payload (the
VMFWresource) from a PE/DLL image. - read_
igvm_ image - Read an IGVM image from
path, transparently extracting it from avmfirmwareigvmresource DLL whenpathpoints at a PE/DLL rather than a raw IGVM file. - utf16le_
eq ๐ - Compare a little-endian UTF-16 PE resource name to an ASCII string.