Trait project2::vmexit::hypercall::HypercallAbi
source · 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§
Required Methods§
sourcefn handle<P: Probe>(
&mut self,
hc: Self::Call,
p: &mut P,
generic_vcpu_state: &mut GenericVCpuState<'_>
) -> Result<VmexitResult, VmError>
fn handle<P: Probe>( &mut self, hc: Self::Call, p: &mut P, generic_vcpu_state: &mut GenericVCpuState<'_> ) -> Result<VmexitResult, VmError>
Handle the hypercall hc
.