pub trait PioHandlerwhere
    Self: Send + Sync,{
    // Required method
    fn handle(
        &self,
        port: u16,
        direction: Direction,
        p: &dyn Probe,
        generic_vcpu_state: &mut GenericVCpuState<'_>
    ) -> Result<VmexitResult, VmError>;
}
Expand description

Trait that represent handlers for port-mapped devices.

Required Methods§

source

fn handle( &self, port: u16, direction: Direction, p: &dyn Probe, generic_vcpu_state: &mut GenericVCpuState<'_> ) -> Result<VmexitResult, VmError>

handle I/O instructions on the device indicated by the port with the operands included in direction.

Implementors§