Skip to main content

request_run_async

Function request_run_async 

Source
pub fn request_run_async(vcpu_id: u64) -> Result<(), RunError>
Expand description

Posts a RUN request without waiting for the vCPU task.

The request is marked in the slot, the vCPU kernel task is woken, and the call returns immediately. The caller must collect completion with wait_run_complete (or observe the exit queue). Only one RUN may be in flight per vCPU; a second request before completion returns RunError::Busy.

This is the kernel-internal primitive used by the SMP selftest to queue two vCPUs back-to-back and measure real overlap; it has no ABI/syscall surface.