Trait virt::SynicMonitor

source ·
pub trait SynicMonitor: Synic {
    // Required methods
    fn register_monitor(
        &self,
        monitor_id: MonitorId,
        connection_id: u32,
    ) -> Box<dyn Send>;
    fn set_monitor_page(&self, gpa: Option<u64>) -> Result<()>;
}
Expand description

Provides monitor page functionality for a Synic implementation.

Required Methods§

source

fn register_monitor( &self, monitor_id: MonitorId, connection_id: u32, ) -> Box<dyn Send>

Registers a monitored interrupt. The returned struct will unregister the ID when dropped.

§Panics

Panics if monitor_id is already in use.

source

fn set_monitor_page(&self, gpa: Option<u64>) -> Result<()>

Sets the GPA of the monitor page currently in use.

Implementors§