pub trait HypercallAbiwhere
    Self: Sync + Send + 'static,{
    type Call: Hypercall;

    // Required method
    fn handle<P: Probe>(
        &mut self,
        hc: Self::Call,
        p: &mut P,
        generic_vcpu_state: &mut GenericVCpuState<'_>
    ) -> Result<VmexitResult, VmError>;
}
Expand description

Trait that represent the hypercall abi.

Required Associated Types§

source

type Call: Hypercall

Hypercalls that this controller can handle.

Required Methods§

source

fn handle<P: Probe>( &mut self, hc: Self::Call, p: &mut P, generic_vcpu_state: &mut GenericVCpuState<'_> ) -> Result<VmexitResult, VmError>

Handle the hypercall hc.

Implementors§