Trait project2::vmexit::pio::PioHandler
source · 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§
sourcefn handle(
&self,
port: u16,
direction: Direction,
p: &dyn Probe,
generic_vcpu_state: &mut GenericVCpuState<'_>
) -> Result<VmexitResult, VmError>
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.