Trait virt::irqcon::IoApicRouting

source ·
pub trait IoApicRouting: Send + Sync {
    // Required methods
    fn set_irq_route(&self, irq: u8, request: Option<MsiRequest>);
    fn assert_irq(&self, irq: u8);
}
Expand description

Trait for an interrupt controller that can deliver MSIs from an IO-APIC.

This is used to map line interrupts, which may be level triggered. Some hypervisors (notably KVM) will not generate EOI exits for a level-triggered interrupt request unless the request has been registered as a route on one of the IO-APIC IRQs.

Required Methods§

source

fn set_irq_route(&self, irq: u8, request: Option<MsiRequest>)

Sets the associated interrupt request for the given irq.

source

fn assert_irq(&self, irq: u8)

Asserts the given irq, using the route established by set_irq_route.

Implementors§