Trait vmcore::vpci_msi::VpciInterruptMapper

source ·
pub trait VpciInterruptMapper: Send + Sync {
    // Required methods
    fn register_interrupt(
        &self,
        vector_count: u32,
        params: &VpciInterruptParameters<'_>,
    ) -> Result<MsiAddressData, RegisterInterruptError>;
    fn unregister_interrupt(&self, address: u64, data: u32);
}
Expand description

Trait to model host-assisted MSI/MSI-X configuration when using VPCI.

The VPCI model allows the guest to register interrupts with the host, and have the host return an MSI (address, data) value to use to program the MSI/MSI-X configuration within the device.

Required Methods§

Implementors§