Skip to main content

Module kwpatch

Module kwpatch 

Source
Expand description

Native Rust parser for unkernel.wasm bundle custom sections and KWP1 kernel patches (unkernel.kernel.smp.kwpatch), eliminating any Node.js build/unpack dependency.

Structs§

UnpackedBundle
Parsed metadata and unpacked SMP Wasm module extracted from an unkernel.wasm bundle.

Functions§

ensure_mutable_globals_exported
Ensure every mutable global in a Wasm module is exported so the multi-instance task scheduler can save and restore per-CPU Wasm globals across wasm_switch_to even when upstream builds strip --export-all (unkernel v0.3.0+).
parse_custom_sections
Extract all custom sections from a Wasm module.
unpack_smp_bundle
Unpack the SMP Wasm kernel (unkernel.kernel.smp.kwpatch), initrd, and cmdline directly from an unmodified unkernel.wasm bundle.