Trait vmcore::synic::GuestEventPort

source ·
pub trait GuestEventPort: Send + Sync {
    // Required methods
    fn interrupt(&self) -> Interrupt;
    fn clear(&mut self);
    fn set(&mut self, vtl: Vtl, vp: u32, sint: u8, flag: u16);
}
Expand description

A guest event port, created by SynicPortAccess::new_guest_event_port.

Required Methods§

source

fn interrupt(&self) -> Interrupt

Returns an interrupt object used to signal the guest.

source

fn clear(&mut self)

Clears the event port state so that the interrupt does nothing.

source

fn set(&mut self, vtl: Vtl, vp: u32, sint: u8, flag: u16)

Updates the parameters for the event port.

Implementors§