Skip to main content

Module vm_driver

Module vm_driver 

Source
Expand description

The VM task driver (T11).

VmTask wraps one resumable Vm as a scheduler [Task]. On each poll it delivers the scheduler’s resume value into the VM’s reserved register, runs the VM until its next concurrency op (run_until_block), drains any output the slice produced into a shared sink, and maps the VM’s [VmBlock] request to a scheduler [TaskStep]. It mirrors the tree-walker’s super::driver::InterpreterTask.

Structs§

VmTask
Drives one VM task on the scheduler. err_sink (first writer wins) receives the task’s error if it fails.