Skip to main content

request_run_timeout

Function request_run_timeout 

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

Requests execution of a vCPU and waits at most timeout_ns for the end of that RUN.

Returns RunError::Timeout if the vCPU task did not complete the request within the budget. The request stays queued (run_in_flight), so a late completion still clears the slot; the caller must treat the timeout as a defect and must not issue another RUN before it completes.