Skip to main content

Module jit

Module jit 

Source
Expand description

Cranelift-backed kw_host_jit_* implementation for unkernel’s kwemu aarch64 JIT.

Each compiled ARM64 basic block is emitted by the guest kernel as a tiny Wasm module importing env.memory and env.table and exporting function f. We compile each block ONCE via wasmtime::Module::new (which is Send + Sync) and share it across all per-task Stores using a lock-free jit_epoch check on task resume.

Structs§

JitStats
Runtime statistics for kwemu -> Cranelift dynamic guest block compilation.
SharedJitState
VM-wide shared JIT table synchronized across all kernel task Stores via epoch.
TaskJitState
Per-task (Store-local) mirror of __indirect_function_table JIT slots.